From e8b9861ac3665f01dad3b2ec49611345327c77b7 Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Mon, 15 Sep 2014 22:13:22 -0700 Subject: [PATCH] v0.6.3 --- README.md | 4 ++-- bower.json | 2 +- examples/server/node/server.js | 12 ++++++------ package.json | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 574eb931..114f6369 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Build Status](http://img.shields.io/travis/sahat/satellizer.svg?style=flat)](https://travis-ci.org/sahat/satellizer) [![Code Climate](http://img.shields.io/codeclimate/github/sahat/satellizer.svg?style=flat)](https://codeclimate.com/github/sahat/satellizer) [![Test Coverage](http://img.shields.io/codeclimate/coverage/github/sahat/satellizer.svg?style=flat)](https://codeclimate.com/github/sahat/satellizer) -[![Version](http://img.shields.io/badge/version-0.6.2-orange.svg?style=flat)](https://www.npmjs.org/package/satellizer) +[![Version](http://img.shields.io/badge/version-0.6.3-orange.svg?style=flat)](https://www.npmjs.org/package/satellizer) **:space_invader: Live Demo:** [https://satellizer.herokuapp.com](https://satellizer.herokuapp.com) @@ -45,7 +45,7 @@ npm install satellizer --save or use the CDN: ```html - + ``` ## Usage diff --git a/bower.json b/bower.json index debdf445..7e45b26f 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "satellizer", - "version": "0.6.2", + "version": "0.6.3", "main": "satellizer.js", "homepage": "https://github.com/sahat/satellizer", "ignore": [ diff --git a/examples/server/node/server.js b/examples/server/node/server.js index 0700ead9..6e08520f 100644 --- a/examples/server/node/server.js +++ b/examples/server/node/server.js @@ -199,7 +199,7 @@ app.post('/auth/google', function(req, res) { // Step 2. Retrieve profile information about the current user. request.get({ url: peopleApiUrl, headers: headers, json: true }, function(err, response, profile) { - // Step 3a. If user is already signed in then link accounts. + // Step 3a. Link user accounts. if (req.headers.authorization) { User.findOne({ google: profile.sub }, function(err, existingUser) { if (existingUser) { @@ -264,7 +264,7 @@ app.post('/auth/github', function(req, res) { // Step 2. Retrieve profile information about the current user. request.get({ url: userApiUrl, qs: accessToken, headers: headers, json: true }, function(err, response, profile) { - // Step 3a. If user is already signed in then link accounts. + // Step 3a. Link user accounts. if (req.headers.authorization) { User.findOne({ github: profile.id }, function(err, existingUser) { if (existingUser) { @@ -336,7 +336,7 @@ app.post('/auth/linkedin', function(req, res) { // Step 2. Retrieve profile information about the current user. request.get({ url: peopleApiUrl, qs: params, json: true }, function(err, response, profile) { - // Step 3a. If user is already signed in then link accounts. + // Step 3a. Link user accounts. if (req.headers.authorization) { User.findOne({ linkedin: profile.id }, function(err, existingUser) { if (existingUser) { @@ -399,7 +399,7 @@ app.post('/auth/facebook', function(req, res) { // Step 2. Retrieve profile information about the current user. request.get({ url: graphApiUrl, qs: accessToken, json: true }, function(err, response, profile) { - // Step 3a. If user is already signed in then link accounts. + // Step 3a. Link user accounts. if (req.headers.authorization) { User.findOne({ facebook: profile.id }, function(err, existingUser) { if (existingUser) { @@ -476,7 +476,7 @@ app.get('/auth/twitter', function(req, res) { request.post({ url: accessTokenUrl, oauth: accessTokenOauth }, function(err, response, profile) { profile = qs.parse(profile); - // Step 4a. If user is already signed in then link accounts. + // Step 4a. Link user accounts. if (req.headers.authorization) { User.findOne({ twitter: profile.user_id }, function(err, existingUser) { if (existingUser) { @@ -543,7 +543,7 @@ app.post('/auth/foursquare', function(req, res) { request.get({ url: userProfileUrl, qs: params, json: true }, function(err, response, profile) { profile = profile.response.user; - // Step 3a. If user is already signed in then link accounts. + // Step 3a. Link user accounts. if (req.headers.authorization) { User.findOne({ foursquare: profile.id }, function(err, existingUser) { if (existingUser) { diff --git a/package.json b/package.json index 31ea3f38..90d8b4bd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "satellizer", "description": "Token-based AngularJS Authentication", - "version": "0.6.2", + "version": "0.6.3", "scripts": { "start": "node ./examples/server/node/server.js", "test": "karma start"