Skip to content

Commit

Permalink
fix: use sessionStorage rather than localStorage (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
imp2002 authored Mar 22, 2023
1 parent 7d533ee commit 0ff27b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class Sdk {
if (event.data.type === "loginSuccess") {
this.signin(serverUrl, signinPath, event.data.data.code, event.data.data.state)
.then((res: any) => {
localStorage.setItem("token", res.token);
sessionStorage.setItem("token", res.token);
window.location.reload();
});
popupWindow!.close();
Expand Down

0 comments on commit 0ff27b1

Please sign in to comment.