mirror of
https://github.com/p-stream/providers.git
synced 2026-03-11 17:55:36 +00:00
update febboxKey location
This commit is contained in:
parent
eb36194737
commit
a49f4b108a
1 changed files with 2 additions and 2 deletions
|
|
@ -5,10 +5,10 @@ import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
|
|||
const getUserToken = (): string | null => {
|
||||
try {
|
||||
if (typeof window === 'undefined') return null;
|
||||
const authData = window.localStorage.getItem('__MW::auth');
|
||||
const authData = window.localStorage.getItem('__MW::preferences');
|
||||
if (!authData) return null;
|
||||
const parsedAuth = JSON.parse(authData);
|
||||
return parsedAuth?.state?.febboxToken || null;
|
||||
return parsedAuth?.febboxKey || null;
|
||||
} catch (e) {
|
||||
console.warn('Unable to access localStorage or parse auth data:', e);
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue