Skip to content

Commit

Permalink
Merge pull request #352 from Web3Auth/fix/session-id-state
Browse files Browse the repository at this point in the history
adds sessionId in the state
  • Loading branch information
chaitanyapotti authored Dec 16, 2024
2 parents ef089ce + 8f87d72 commit afba46d
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 afba46d

Please sign in to comment.