diff --git a/packages/core-app-api/src/lib/AuthSessionManager/RefreshingAuthSessionManager.ts b/packages/core-app-api/src/lib/AuthSessionManager/RefreshingAuthSessionManager.ts index 216409a528..1978e14d2d 100644 --- a/packages/core-app-api/src/lib/AuthSessionManager/RefreshingAuthSessionManager.ts +++ b/packages/core-app-api/src/lib/AuthSessionManager/RefreshingAuthSessionManager.ts @@ -83,10 +83,7 @@ export class RefreshingAuthSessionManager implements SessionManager { } return refreshedSession; } catch (error) { - if (options.optional) { - return undefined; - } - throw error; + // If the refresh attempt fails we assume we don't have a session, so continue to create one. } }