Skip to content

Commit 8f863a8

Browse files
committed
fixes logout
1 parent b2a4c82 commit 8f863a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Web3Auth.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,10 @@ class Web3Auth implements IWeb3Auth {
261261
if (!this.sessionManager.sessionId) {
262262
throw LoginError.userNotLoggedIn();
263263
}
264+
const currentUserInfo = this.userInfo();
265+
264266
await this.sessionManager.invalidateSession();
265267
await this.keyStore.remove("sessionId");
266-
const currentUserInfo = this.userInfo();
267268

268269
if (currentUserInfo.verifier && currentUserInfo.dappShare.length > 0) {
269270
await this.keyStore.remove(currentUserInfo.verifier);

0 commit comments

Comments
 (0)