Skip to content

Commit

Permalink
v0.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
sahat committed Sep 16, 2014
1 parent eb6ba61 commit e8b9861
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -45,7 +45,7 @@ npm install satellizer --save
or use the CDN:

```html
<script src="//cdn.jsdelivr.net/satellizer/0.6.2/satellizer.min.js"></script>
<script src="//cdn.jsdelivr.net/satellizer/0.6.3/satellizer.min.js"></script>
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "satellizer",
"version": "0.6.2",
"version": "0.6.3",
"main": "satellizer.js",
"homepage": "https://github.com/sahat/satellizer",
"ignore": [
Expand Down
12 changes: 6 additions & 6 deletions examples/server/node/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit e8b9861

Please sign in to comment.