diff --git a/src/context/AuthContext.tsx b/src/context/AuthContext.tsx index 3f7da5e6..6c306aa9 100644 --- a/src/context/AuthContext.tsx +++ b/src/context/AuthContext.tsx @@ -51,8 +51,8 @@ function AuthProvider({ children }: { children: ReactNode }) { } = useLocalStorageValue( import.meta.env.VITE_KEY_API_ACCESS_TOKEN || '', { - parse: (data: string) => data, - stringify: (data: unknown) => data, + parse: (data: string | null) => data, + stringify: (data: string) => data, } ) const {