Comparing version 0.2.0 to 0.2.1
@@ -11,2 +11,3 @@ var request = require('request'); | ||
client.getAuthorizeURL = function(service, options) { | ||
if (!options) options = {}; | ||
if (!options.client_id) options.client_id = clientId; | ||
@@ -13,0 +14,0 @@ if (!options.redirect_uri) options.redirect_uri = redirectURI; |
@@ -5,3 +5,3 @@ { | ||
"description": "Client library for the Singly API", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"homepage": "https://singly.com", | ||
@@ -8,0 +8,0 @@ "main" : "lib.js", |
@@ -18,4 +18,4 @@ var Singly = require('./lib'); | ||
app.get('/callback', function(req, res) { | ||
singly.getAccessToken(req.param('code'), function(err, access_token) { | ||
accessToken = access_token; | ||
singly.getAccessToken(req.param('code'), function(err, resp, auth) { | ||
accessToken = auth.access_token; | ||
res.redirect('/all'); | ||
@@ -22,0 +22,0 @@ }); |
4629
7
112