Skip to content

Commit

Permalink
Merge pull request #24 from kbackowski/master
Browse files Browse the repository at this point in the history
Fixed access token duplicate generation
  • Loading branch information
Amir Malik committed Nov 21, 2012
2 parents 8b18eaf + bb34472 commit 11969c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -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);
Expand Down

0 comments on commit 11969c6

Please sign in to comment.