Changes
Core
Auth & Compose Auth
- Add support for linkIdentity with OIDC by @jan-tennert in #1051
You can now link a Google / Apple account to an existing Supabase account vialinkIdentityWithIdToken:To accomplish this with Compose Auth, set thesupabase.auth.linkIdentityWithIdToken(provider = Google, idToken = "idToken received from native auth") { // optional stuff }
onIdTokenparameter in therememberSignInWith(...)method: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)//default parameter is ComposeAuth.SIGN_IN_CALLBACK val state = composeAuth.rememberSignInWithGoogle(onIdToken = ComposeAuth.LINK_IDENTITY_CALLBACK)