Permalink
Browse files

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

…ment.
  • Loading branch information...
bnoguchi committed Apr 5, 2011
1 parent cee550b commit d522680659a7bcaac2bd7e3b20a0a0a1be8bb49f
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/oauth.js
View
@@ -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) {

0 comments on commit d522680

Please sign in to comment.