Skip to content

Commit

Permalink
adds sessionId in the state
Browse files Browse the repository at this point in the history
  • Loading branch information
arch1995 committed Dec 16, 2024
1 parent ef089ce commit 8f87d72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
}
}
Expand Down

0 comments on commit 8f87d72

Please sign in to comment.