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
import { AppState } from 'react-native'
// make sure you register this only once!
AppState.addEventListener('change', (state) => {
if (state === 'active') {
supabase.auth.startAutoRefresh()
} else {
supabase.auth.stopAutoRefresh()
}
})
Wait for ~1 hour, notice that user is no longer authenticated.
Expected behavior
Session refresh should work.
System information
Version of supabase-js: [e.g. 2.43.4]
Version of Node.js: [e.g. 18.18.0]
The text was updated successfully, but these errors were encountered:
Bug report
Describe the bug
Session refresh works fine on android, but will fail on IOS if the app is backgrounded/inactive for too long.
To Reproduce
Implement refresh logic per the docs
Wait for ~1 hour, notice that user is no longer authenticated.
Expected behavior
Session refresh should work.
System information
The text was updated successfully, but these errors were encountered: