wip: needs testing on physical devices

This commit is contained in:
Loewy
2024-02-08 12:38:55 -08:00
parent baab800a1c
commit 6b8737e182
4 changed files with 30 additions and 24 deletions

View File

@@ -30,19 +30,20 @@ export const confirmCode = async (
}
};
export const createOrSignInUser = (email: string, password: string, isSignUp: boolean) => {
console.log('isSignUp', isSignUp);
export const createOrSignInUser = (
email: string,
password: string,
isSignUp: boolean,
) => {
console.log("isSignUp", isSignUp);
try {
if (isSignUp) {
auth().createUserWithEmailAndPassword(email, password)
auth().createUserWithEmailAndPassword(email, password);
} else {
auth().signInWithEmailAndPassword(email, password)
auth().signInWithEmailAndPassword(email, password);
}
} catch (err) {
}
}
} catch (err) {}
};
export const onAuthStateChanged = (
// TODO: eslint not detecting ts?