Permalink
Browse files

Merge pull request #24 from kbackowski/master

Fixed access token duplicate generation
  • Loading branch information...
2 parents 8b18eaf + bb34472 commit 11969c6602272aef3d5b8429bed956f7a9e8f95b @ammmir committed Nov 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
@@ -170,7 +170,7 @@ OAuth2Provider.prototype.oauth = function() {
if(self.listeners('save_access_token').length > 0)
self.emit('save_access_token', user_id, client_id, atok);
- res.end(JSON.stringify(self.generateAccessToken(user_id, client_id, extra_data)));
+ res.end(JSON.stringify(atok));
});
self.emit('remove_grant', user_id, client_id, code);

0 comments on commit 11969c6

Please sign in to comment.