wip: needs testing on physical devices
This commit is contained in:
@@ -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?
|
||||
|
Reference in New Issue
Block a user