catch potential fatal errors from auth

This commit is contained in:
Nate 2024-10-25 10:41:15 -07:00
parent 8d2a3ffc24
commit c3dfa0c31c

View file

@ -160,7 +160,11 @@ export class WorkOsAuthProvider implements AuthenticationProvider, Disposable {
}
async refreshSessions() {
await this._refreshSessions();
try {
await this._refreshSessions();
} catch (e) {
console.error(`Error refreshing sessions: ${e}`);
}
}
private async _refreshSessions(): Promise<void> {