From ea54c4a8e38df3a53ff1e466e00e3f82c460f9ff Mon Sep 17 00:00:00 2001 From: Nick Winter <livelily@gmail.com> Date: Sat, 18 Apr 2015 19:41:34 -0700 Subject: [PATCH] Keeping GPLUS_TOKEN_KEY in localStorage forever. --- app/core/social-handlers/GPlusHandler.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/core/social-handlers/GPlusHandler.coffee b/app/core/social-handlers/GPlusHandler.coffee index 803f12cbc..ca40485d0 100644 --- a/app/core/social-handlers/GPlusHandler.coffee +++ b/app/core/social-handlers/GPlusHandler.coffee @@ -19,7 +19,7 @@ scope = 'https://www.googleapis.com/auth/plus.login email' module.exports = GPlusHandler = class GPlusHandler extends CocoClass constructor: -> - @accessToken = storage.load GPLUS_TOKEN_KEY + @accessToken = storage.load GPLUS_TOKEN_KEY, false super() subscriptions: @@ -53,7 +53,7 @@ module.exports = GPlusHandler = class GPlusHandler extends CocoClass try # Without removing this, we sometimes get a cross-domain error d = _.omit(e, 'g-oauth-window') - storage.save(GPLUS_TOKEN_KEY, d) + storage.save(GPLUS_TOKEN_KEY, d, 0) catch e console.error 'Unable to save G+ token key', e @accessToken = e