mirror of
https://github.com/p-stream/providers.git
synced 2026-05-20 20:22:05 +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 => {
|
const getUserToken = (): string | null => {
|
||||||
try {
|
try {
|
||||||
if (typeof window === 'undefined') return null;
|
if (typeof window === 'undefined') return null;
|
||||||
const authData = window.localStorage.getItem('__MW::auth');
|
const authData = window.localStorage.getItem('__MW::preferences');
|
||||||
if (!authData) return null;
|
if (!authData) return null;
|
||||||
const parsedAuth = JSON.parse(authData);
|
const parsedAuth = JSON.parse(authData);
|
||||||
return parsedAuth?.state?.febboxToken || null;
|
return parsedAuth?.febboxKey || null;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.warn('Unable to access localStorage or parse auth data:', e);
|
console.warn('Unable to access localStorage or parse auth data:', e);
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue