auth clean up

This commit is contained in:
2025-12-03 10:55:17 -05:00
parent 606b926886
commit cb55eee992
31 changed files with 225 additions and 9 deletions
+2
View File
@@ -20,6 +20,7 @@ type AuthUser = {
type AuthContextValue = {
user: AuthUser;
token: string | null;
loading: boolean; // covers initial hydrate + active auth requests
login: (params: { email: string; password: string }) => Promise<void>;
register: (params: {
@@ -171,6 +172,7 @@ export function AuthProvider({ children }: { children: ReactNode }) {
const value: AuthContextValue = {
user,
token,
loading,
login,
register,