fix: authStorage key depends on pathname, F5 refresh logs out
location.pathname changes between /login and /upstreams, causing different localStorage keys. Use static 'smartup' instead.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const appKey = import.meta.env.VITE_APP_KEY || location.pathname.replace(/\W+/g, '_') || 'smartup'
|
||||
const appKey = import.meta.env.VITE_APP_KEY || 'smartup'
|
||||
const prefix = `smartup_${appKey}`
|
||||
|
||||
export const authStorageKeys = {
|
||||
|
||||
Reference in New Issue
Block a user