wip: almost there, needs dev mode sorted + loading
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
Reference in New Issue
Block a user