We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8a2fdc commit ec7284fCopy full SHA for ec7284f
src/lib/providers/auth-store-provider.tsx
@@ -16,7 +16,7 @@ export interface AuthStoreProviderProps {
16
17
export const AuthStoreProvider = ({ children }: AuthStoreProviderProps) => {
18
const storeRef = useRef<StoreApi<AuthStore>>(undefined);
19
- const authStore = localStorage.getItem("auth-store");
+ const authStore = window.localStorage.getItem("auth-store");
20
21
const persistedStoreOrNull = authStore ? JSON.parse(authStore).state : null;
22
0 commit comments