Skip to content

Commit afba46d

Browse files
Merge pull request #352 from Web3Auth/fix/session-id-state
adds sessionId in the state
2 parents ef089ce + 8f87d72 commit afba46d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/auth.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ export class Auth {
186186
if (Object.keys(data).length === 0) {
187187
// If session is invalid, unset the sessionId from localStorage.
188188
this.currentStorage.set("sessionId", "");
189+
} else {
190+
this.updateState({ sessionId: this.sessionManager.sessionId });
189191
}
190192
}
191193
}

0 commit comments

Comments
 (0)