nextauth working.

This commit is contained in:
2025-06-30 06:36:03 -04:00
parent ccc6e41724
commit 41e55404bf
18 changed files with 925 additions and 23 deletions
+16
View File
@@ -0,0 +1,16 @@
import { create } from 'zustand';
import { Session } from 'next-auth';
interface AuthStore {
session: Session | null;
isLoading: boolean;
setSession: (session: Session | null) => void;
setLoading: (isLoading: boolean) => void;
}
export const useAuthStore = create<AuthStore>((set) => ({
session: null,
isLoading: true,
setSession: (session) => set({ session }),
setLoading: (isLoading) => set({ isLoading }),
}));