I am making something I’ve done many times in the past, without any problem.
But this time things go wrong for some unknown reason.
In my firebase web app, I have a button for the user to reset her/his password.
When I test this feature and click the link received, only a few seconds after it has been sent, I see this:
Try resetting your password again
Your request to reset your password has expired or the link has already been used
What is going on here ?
Did I miss something ?
I’ve seen posts where people had similar issues, but that did not lead me to a solution.
In case it can be of some use, this is the kind of link I receive :
https://myapp.firebaseapp.com/__/auth/action?mode=resetPassword&oobCode=someCode_KRABDcef_uzxoFjdCduQl-FAY_lEABCDzKQ&apiKey=APIKEY-N24402012&lang=en
And also the code for the function executed when my button is clicked:
const firePasswordResetEmail = async (email:string) => {
try {
await sendPasswordResetEmail(auth,email);
alert("Password reset link sent!");
} catch (err) {
console.error(err);
alert(err);
}
};