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 }); } } }