From 979cf5d7d89f07d1f686d29b52f99aa2e332d933 Mon Sep 17 00:00:00 2001 From: Gasan Guseinov Date: Thu, 28 Nov 2024 11:19:30 +0100 Subject: [PATCH] create session if refresh did not succeed Signed-off-by: Gasan Guseinov --- .../lib/AuthSessionManager/RefreshingAuthSessionManager.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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. } }