From 8f87d72c230f9fc20acac17cf61c8c50aea4b31a Mon Sep 17 00:00:00 2001 From: Archit Date: Mon, 16 Dec 2024 12:56:38 +0530 Subject: [PATCH] adds sessionId in the state --- src/core/auth.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/auth.ts b/src/core/auth.ts index bcbbaca1..d9ced0cb 100644 --- a/src/core/auth.ts +++ b/src/core/auth.ts @@ -186,6 +186,8 @@ export class Auth { if (Object.keys(data).length === 0) { // If session is invalid, unset the sessionId from localStorage. this.currentStorage.set("sessionId", ""); + } else { + this.updateState({ sessionId: this.sessionManager.sessionId }); } } }