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
Add support for linkIdentity with OIDC by @jan-tennert in #1051
You can now link a Google / Apple account to an existing Supabase account via linkIdentityWithIdToken:
supabase.auth.linkIdentityWithIdToken(provider =Google, idToken ="idToken received from native auth") {
// optional stuff
}
To accomplish this with Compose Auth, set the onIdToken parameter in the rememberSignInWith(...) method:
//default parameter is ComposeAuth.SIGN_IN_CALLBACKval state = composeAuth.rememberSignInWithGoogle(onIdToken =ComposeAuth.LINK_IDENTITY_CALLBACK)
This also means, you can upgrade anonymous users via native auth and/or handle the id token received from native auth yourself (e.g. via your viewmodel)
Samples
Fix Chat sample launch fails on iOS by @hieuwu in #1050