We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33577a1 commit f3aa4e7Copy full SHA for f3aa4e7
frontend/src/common/session.js
@@ -56,7 +56,12 @@ export default class Session {
56
}
57
58
// Restore authentication data stored under previously used keys.
59
- if (this.storage.getItem("authToken") && this.storage.getItem("sessionId")) {
+ if (
60
+ !this.storage.getItem(this.storageKey + ".token") &&
61
+ this.storage.getItem("authToken") &&
62
+ !this.storage.getItem(this.storageKey + ".id") &&
63
+ this.storage.getItem("sessionId")
64
+ ) {
65
this.storage.setItem(this.storageKey + ".token", this.storage.getItem("authToken"));
66
this.storage.removeItem("authToken");
67
0 commit comments