Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed logic in addToSession in oauth module to more granular assign…

…ment.
  • Loading branch information...
commit d522680659a7bcaac2bd7e3b20a0a0a1be8bb49f 1 parent cee550b
@bnoguchi authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/oauth.js
View
6 lib/oauth.js
@@ -93,9 +93,9 @@ everyModule.submodule('oauth')
var _auth = sess.auth || (sess.auth = {})
, mod = _auth[this.name] || (_auth[this.name] = {});
_auth.loggedIn = true;
- for (var k in auth) {
- mod[k] = auth[k];
- }
+ mod.user = auth.oauthUser;
+ mod.accessToken = auth.accessToken;
+ if (auth.refreshToken) mod.refreshToken = auth.refreshToken;
// this._super() ?
})
.sendResponse( function (res) {
Please sign in to comment.
Something went wrong with that request. Please try again.