fix: export AuthContext to allow import in useAuth hook

Export AuthContext from AuthContext.tsx to make it available for import in hooks/useAuth.ts. This resolves the TypeScript error "Module declares 'AuthContext' locally, but it is not exported."

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
soufiane 2025-11-18 01:57:28 +01:00
parent 8881014e36
commit b6a514b547

View File

@ -20,7 +20,7 @@ interface AuthContextType {
refreshUser: () => Promise<void>; refreshUser: () => Promise<void>;
} }
const AuthContext = createContext<AuthContextType | undefined>(undefined); export const AuthContext = createContext<AuthContextType | undefined>(undefined);
export const useAuth = () => { export const useAuth = () => {
const context = useContext(AuthContext); const context = useContext(AuthContext);