From bb3af18e464efc07fdb01d91360c2e8edd56f1ca Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 18 Aug 2018 11:11:17 +0200 Subject: [PATCH] Only ask to save login with new auth (#1581) --- src/common/auth/token_storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/auth/token_storage.js b/src/common/auth/token_storage.js index e894f55bb8..17ba919821 100644 --- a/src/common/auth/token_storage.js +++ b/src/common/auth/token_storage.js @@ -10,7 +10,7 @@ if (!tokenCache) { } export function askWrite() { - return tokenCache.writeEnabled === undefined; + return tokenCache.tokens !== undefined && tokenCache.writeEnabled === undefined; } export function storeTokens(tokens) {