From bb3447270526bbdea9ca10099f1897d32bce561e Mon Sep 17 00:00:00 2001 From: kbackowski Date: Thu, 4 Oct 2012 15:16:51 +0200 Subject: [PATCH] Fixed access token duplicate generation --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 9f30653..f5ef767 100644 --- a/index.js +++ b/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);