https://supabase.com/ logo
I think that I have a bug with the reset password ...
# help
j
I think that I have a bug with the reset password functionality. When I call: ``js supabase.auth.api.resetPasswordForEmail(email)`` I get the email for resetting my password, but when I click on the link to reset the password, I get ``Missing or invalid credentials.`` See photos in the thread.
n
Hello @Julien! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
j
And the link open seems good: "https://####.supabase.co/#access_token=####&expires_in=3600&refresh_token=####&token_type=bearer&type=recovery"
g
The link in the email should look like
Copy code
https://xxxxxxxxxxxxxxxx.supabase.co/auth/v1/verify?token=rkndncyxcaybbnzayexd&type=recovery&redirect_to=http://mysite.us/somm
The link you are showing closer matches the redirect link back to your app, but that would not have .supabase.co in it...
What is your Site URL setting in Authentication Settings?
j
Oh okay
I just replaced the "5 last letters" with x for sharing
Should it be something else?
That's the url of the API.
g
Site URL you need is where your code is running. So could be
Copy code
http://localhost:3000
Or the server you are running your code on.
j
Oh okay, thanks. It works now! 🙂
I changed it as you said, perfect
n
Thread was archived by @Julien. Anyone can send a message to unarchive it.
3 Views