Ok it might work
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user