I have a React Native project and I want the user to be able to reset his or her password by click the reset password link. Right now they would be logged in so it is grabbing the email from the profile.
Right now, I click reset and it does not send any type of email so I am not sure why it is not sending that email. here is the code I have.
import { getAuth, signOut, sendPasswordResetEmail } from "firebase/auth"
...
const auth = getAuth()
const resetPasswordByLink = () => {
console.log(user.email)
sendPasswordResetEmail(auth, user.email)
.then((response) => {
console.log('response', response)
})
.catch((error) => {
console.log(error)
})
}