Error: "Auth Session Missing", anyone?

error when submitting user password reset
5 Replies
ihm40
ihm402mo ago
What is the actual error you're getting
karabolsak
karabolsakOP2mo ago
literally that
No description
karabolsak
karabolsakOP2mo ago
@ihm40
ihm40
ihm402mo ago
https://supabase.com/docs/reference/javascript/auth-resetpasswordforemail i'm taking a look at this and i think what should be happening is that you prompt the user for a password reset by sending a link via email -> they click that link -> they are redirected to a component like yours to update their password. Currently the error seems to be coming from the fact that supabase does not know which account you are updating the password for which is usually uses the session to determine
JavaScript: Send a password reset request | Supabase Docs
Supabase API reference for JavaScript: Send a password reset request
ihm40
ihm402mo ago
More specifically i think you need to handle this
A PASSWORD_RECOVERY event will be emitted when the password recovery link is clicked. You can use onAuthStateChange() to listen and invoke a callback function on these events.
A PASSWORD_RECOVERY event will be emitted when the password recovery link is clicked. You can use onAuthStateChange() to listen and invoke a callback function on these events.

Did you find this page helpful?