c809139470
location.pathname changes between /login and /upstreams, causing different localStorage keys. Use static 'smartup' instead.
8 lines
184 B
TypeScript
8 lines
184 B
TypeScript
const appKey = import.meta.env.VITE_APP_KEY || 'smartup'
|
|
const prefix = `smartup_${appKey}`
|
|
|
|
export const authStorageKeys = {
|
|
token: `${prefix}_token`,
|
|
email: `${prefix}_email`,
|
|
}
|