Only ask to save login with new auth (#1581)

This commit is contained in:
Paulus Schoutsen 2018-08-18 11:11:17 +02:00 committed by GitHub
parent c025df2974
commit bb3af18e46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ if (!tokenCache) {
}
export function askWrite() {
return tokenCache.writeEnabled === undefined;
return tokenCache.tokens !== undefined && tokenCache.writeEnabled === undefined;
}
export function storeTokens(tokens) {