Skip to content

Commit

Permalink
Fixed access token duplicate generation
Browse files Browse the repository at this point in the history
  • Loading branch information
kbackowski committed Oct 4, 2012
1 parent 8b18eaf commit bb34472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
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 bb34472

Please sign in to comment.