mirror of
https://github.com/urosran/cally.git
synced 2025-07-10 23:27:18 +00:00
19 lines
378 B
TypeScript
19 lines
378 B
TypeScript
import { useMutation } from "react-query";
|
|
import auth from "@react-native-firebase/auth";
|
|
|
|
export const useSignIn = () => {
|
|
|
|
return useMutation({
|
|
mutationKey: ["signIn"],
|
|
mutationFn: async ({
|
|
email,
|
|
password,
|
|
}: {
|
|
email: string;
|
|
password: string;
|
|
}) => {
|
|
await auth().signInWithEmailAndPassword(email, password);
|
|
},
|
|
});
|
|
};
|