Add more logs to auth provider

This commit is contained in:
Rachel Macfarlane 2020-03-24 21:24:38 -07:00
parent f47486af27
commit 8d69766c1c

View file

@ -103,6 +103,7 @@ export class AzureActiveDirectoryService {
await Promise.all(refreshes);
} catch (e) {
Logger.info('Failed to initialize stored data');
await this.clearSessions();
}
}
@ -170,6 +171,7 @@ export class AzureActiveDirectoryService {
if (this._tokens.length) {
// Log out all
removedIds = this._tokens.map(token => token.sessionId);
Logger.info('No tokens in memory, clearing keychain data');
await this.clearSessions();
}
}