Add more logging to github auth provider

This commit is contained in:
Rachel Macfarlane 2020-11-06 15:09:47 -08:00
parent 1d5854f611
commit 03c38e6702

View file

@ -180,9 +180,12 @@ export class GitHubAuthenticationProvider {
}
public async logout(id: string) {
Logger.info(`Logging out of ${id}`);
const sessionIndex = this._sessions.findIndex(session => session.id === id);
if (sessionIndex > -1) {
this._sessions.splice(sessionIndex, 1);
} else {
Logger.error('Session not found');
}
await this.storeSessions();