wip: almost there, needs dev mode sorted + loading

This commit is contained in:
Loewy
2024-02-07 15:39:11 -08:00
parent 07db6e21db
commit b9221fa949
9 changed files with 130 additions and 112 deletions

View File

@@ -1,4 +1,3 @@
import AsyncStorage from "@react-native-async-storage/async-storage";
import auth, { FirebaseAuthTypes } from "@react-native-firebase/auth";
import { Alert } from "react-native";
@@ -47,7 +46,6 @@ export const getCurrentUserToken = async (): Promise<string | null> => {
return null;
};
export const handleSignOut = async (): Promise<void> => {
await AsyncStorage.removeItem("token");
await auth().signOut();
export const handleSignOut = (): Promise<void> => {
return auth().signOut();
};