Skip to content
Browse files

Fixed access token duplicate generation

  • Loading branch information...
1 parent 8b18eaf commit bb3447270526bbdea9ca10099f1897d32bce561e @kbackowski committed Oct 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
2 index.js
@@ -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 bb34472

Please sign in to comment.
Something went wrong with that request. Please try again.