You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to reset a password for a user, but every time I attempt to update the password, Supabase returns an error message saying 'Auth session missing!', even though I have already set a new session
To Reproduce
I requested to reset my password.
I received the email in my inbox.
I clicked on the link.
I was redirected to the app.
I set the new password.
I received the error message.
Expected behavior
Once the user is inside the app, he should be able to reset the password.
I'm trying to update the session from user on this useEffect, but for some reason, this is not updating the session, because Supabase keeps saying: Auth session missing!:
useEffect(()=>{(async()=>{consturl=awaitLinking.getInitialURL();if(url?.includes("reset-password")){consttransformedUrl=parseSupabaseUrl(url);constparsedUrl=Linking.parse(transformedUrl);constaccessToken=parsedUrl.queryParams?.access_token;constrefreshToken=parsedUrl.queryParams?.refresh_token;if(typeofaccessToken==="string"&&typeofrefreshToken==="string"){try{const{ data, error }=awaitsupabase.auth.setSession({access_token: accessToken,refresh_token: refreshToken,});awaitsupabase.auth.refreshSession();if(error)throwerror;setSession(data.session);setUser(session ? session.user : null);if(data.session){router.replace("/(app)/settings/reset-password/");}}catch(error){console.error("Failed to set session:",error);}}}})();},[]);
Bug report
Describe the bug
I'm trying to reset a password for a user, but every time I attempt to update the password, Supabase returns an error message saying 'Auth session missing!', even though I have already set a new session
To Reproduce
Expected behavior
Once the user is inside the app, he should be able to reset the password.
Screenshots
Here is the print showing the email:
Here is the moment after I clicked on the link:
Here is the moment after I clicked on open:
More informations
Here is my Supabase Context:
System information
The text was updated successfully, but these errors were encountered: