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
// assume user is already logged in and authenticated
// link the current user to a google identity
// this works very similar to signInWithOAuth() and will redirect the user to google to complete the oauth flow
// once the oauth flow has been completed, the user will be redirected back to the app with the identity linked
const { data, error } = await supabase.auth.linkIdentity({ provider: 'google' })
// fetch all identities linked to the current user
const { data: { identities } } = await supabase.auth.getUserIdentities()
const googleIdentity = identities.find(identity => identity.provider === 'google')
// unlink an identity
await supabase.auth.unlinkIdentity(googleIdentity)
The text was updated successfully, but these errors were encountered:
as per supabase/auth#313
we need similar capabilities in swift / mobile
The text was updated successfully, but these errors were encountered: