triniwiz / nativescript-plugins

Apache License 2.0
78 stars 50 forks source link

feat(supabase): update gotrue, persist offline session #189

Closed rigor789 closed 7 months ago

rigor789 commented 7 months ago

Updated to latest GoTrue client.

Added support for allowExpiredSession + adjusted session logic so if there's an existing session from storage, we keep it in case an authRetryableError happens (ie. the session expired, but we failed to refresh it). This allows the session to stay alive even when the user is offline, as a refresh will still happen once online.