mirror of
https://github.com/urosran/cally.git
synced 2025-07-10 07:07:16 +00:00
19 lines
388 B
TypeScript
19 lines
388 B
TypeScript
import { useMutation } from "@tanstack/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);
|
|
},
|
|
});
|
|
};
|