Ok it might work

This commit is contained in:
2026-04-25 12:08:14 +02:00
parent 928db54b3e
commit 858ee5e28b
10 changed files with 229 additions and 67 deletions

View File

@@ -8,7 +8,7 @@ interface User {
interface AuthContextValue {
user: User | null;
isHydrated: boolean;
login: (email: string, password: string) => Promise<void>;
login: (email: string, password: string) => Promise<boolean>;
logout: () => Promise<void>;
}
@@ -41,6 +41,9 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
await AsyncStorage.setItem(STORAGE_KEY, JSON.stringify(fakeUser));
setUser(fakeUser);
console.log(fakeUser)
await new Promise((resolve) => setTimeout(resolve, 1000));
return true;
}
const logout = async () => {