mirror of
https://github.com/urosran/cally.git
synced 2025-07-10 15:17:17 +00:00
17 lines
423 B
TypeScript
17 lines
423 B
TypeScript
import {useMutation} from "@tanstack/react-query";
|
|
import auth from "@react-native-firebase/auth";
|
|
|
|
export const useResetPassword = () => {
|
|
return useMutation({
|
|
mutationKey: ["resetPassword"],
|
|
mutationFn: async (
|
|
{
|
|
email,
|
|
}: {
|
|
email: string;
|
|
}) => {
|
|
return await auth().sendPasswordResetEmail(email);
|
|
},
|
|
});
|
|
};
|