Update WorkOsAuthProvider.ts

This commit is contained in:
Tomasz Stefaniak 2025-06-13 14:17:37 -07:00
parent 1f47f5436d
commit 107a57ffe6

View file

@ -183,6 +183,7 @@ export class WorkOsAuthProvider implements AuthenticationProvider, Disposable {
async refreshSessions() {
try {
debugger;
await this._refreshSessions();
} catch (e) {
console.error(`Error refreshing sessions: ${e}`);
@ -246,6 +247,8 @@ export class WorkOsAuthProvider implements AuthenticationProvider, Disposable {
if (
error.message?.includes("401") ||
error.message?.includes("Invalid refresh token") ||
error.message?.includes("400") ||
error.message?.includes("Unauthorized") ||
attempt >= maxAttempts
) {
throw error;