here you go loewy

This commit is contained in:
Andy Malkin
2024-02-07 16:59:11 -08:00
parent b9221fa949
commit 3a476e0db4
5 changed files with 69 additions and 54 deletions

View File

@@ -38,6 +38,8 @@ export const onAuthStateChanged = (
return auth().onAuthStateChanged(callback);
};
export const currentUser = () => auth().currentUser;
export const getCurrentUserToken = async (): Promise<string | null> => {
const user = auth().currentUser;
if (user) {

View File

@@ -1,6 +1,6 @@
import {
confirmCode,
getCurrentUserToken,
currentUser,
handleSignInWithPhoneNumber,
handleSignOut,
onAuthStateChanged,
@@ -8,7 +8,7 @@ import {
export {
confirmCode,
getCurrentUserToken,
currentUser,
handleSignInWithPhoneNumber,
handleSignOut,
onAuthStateChanged,