how to sign out user (Expo Apple auth with Supabase)
Expo Apple Auth docs say not to use the sign out method, so I’m a little confused here. I’m developing on react native with expo - iOS platform.
The user is signed in with -
Supabase.auth.signInWithIdToken which accepts an identity token
….
Expo Apple Authentication Library
AppleAuthentication.signOutAsync(options)
An operation that ends the authenticated session. Calling this method will show the sign in modal before actually signing the user out.
It is not recommended to use this method to sign out the user as it works counterintuitively. Instead of using this method it is recommended to simply clear all the user's data collected from using signInAsync or refreshAsync methods.
…
The Supabase docs mention how sign out works for browser context but not for native. Does supabase sign out handle signing out for me completely and I won’t have to worry about signing out from Apple auth?
…
Supabase
Sign out a user
Inside a browser context, signOut() will remove the logged in user from the browser session and log them out - removing all items from localstorage and then trigger a "SIGNED_OUT" event.
In order to use the signOut() method, the user needs to be signed in first.
…
0 Replies