Change from localStorage to sessionStorage for the state
This commit is contained in:
parent
8651bf65dd
commit
c9c1e57187
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ export default {
|
|||
if (this.use_state) {
|
||||
let state = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
|
||||
params.push(`state=${state}`);
|
||||
localStorage.setItem(`top-spotify-state`, state);
|
||||
sessionStorage.setItem(this.storage_key.state, state);
|
||||
};
|
||||
|
||||
return `${this.auth_base}?${params.join("&")}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue