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
In my react-native expo app I'm using email sign-up with confirmation and a password reset workflow. I'm creating a session from the confirmation URL sent on sign up the following way.
In Expo Go everything works fine. The issue comes when I build my app and test it on my device through TestFlight. Upon receiving and going through the confirmation link to the app, receiving the URL and eventually ending up in the mentioned function supabase.auth.setSession returns an error AuthRetryableFetchError with a status: 0. Apart from happening only on production, the other annoying part is that it's not consistent. Every second or third attempt will fail even tho the URL and the tokens are valid.
It's important to note that receiving a link for password reset goes through the same workflow and always succeeds without issues.
To Reproduce
Because of the nature of the issue I can't give any concrete steps. But any suggestion would be welcome.
Expected behavior
setSession, given valid access_token and refresh_token should always succeed
System information
OS: iOS
Version of supabase-js: "@supabase/supabase-js": "^2.45.6"
Expo version: "expo": "^51.0.37"
React Native: "react-native": "0.74.5"
The text was updated successfully, but these errors were encountered:
After speaking with support I was able to mitigate this issue. I'm gonna write down my response and leave it in case someone also stumbles on the same issue.
In short setSession can fail for a multitude of reasons, poor network connection can be one of them.
If we receive an AuthRetryableFetchError we can periodically try again to set the session.
Bug report
Describe the bug
In my react-native expo app I'm using email sign-up with confirmation and a password reset workflow. I'm creating a session from the confirmation URL sent on sign up the following way.
In Expo Go everything works fine. The issue comes when I build my app and test it on my device through TestFlight. Upon receiving and going through the confirmation link to the app, receiving the URL and eventually ending up in the mentioned function
supabase.auth.setSession
returns an errorAuthRetryableFetchError
with astatus: 0
. Apart from happening only on production, the other annoying part is that it's not consistent. Every second or third attempt will fail even tho the URL and the tokens are valid.It's important to note that receiving a link for password reset goes through the same workflow and always succeeds without issues.
To Reproduce
Because of the nature of the issue I can't give any concrete steps. But any suggestion would be welcome.
Expected behavior
setSession
, given validaccess_token
andrefresh_token
should always succeedSystem information
"@supabase/supabase-js": "^2.45.6"
"expo": "^51.0.37"
"react-native": "0.74.5"
The text was updated successfully, but these errors were encountered: