github supabase-community/supabase-kt 3.2.4

latest releases: 3.7.0, 3.7.0-beta-1, 3.6.0...
10 months ago

Changes

Core

  • Update Ktor to version 3.3.0
  • make kermit logger non-global by @sproctor in #1044

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 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_CALLBACK
    val 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

Don't miss a new supabase-kt release

NewReleases is sending notifications on new releases.