Files
cally/hooks/firebase/useResetPassword.ts
Milan Paunovic 926af6212b Remove dark theme
2024-09-23 20:58:48 +02:00

17 lines
413 B
TypeScript

import {useMutation} from "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);
},
});
};