github supabase-community/supabase-kt 1.0.0-alpha-1

latest releases: 3.7.0, 3.7.0-beta-1, 3.6.0...
pre-release3 years ago

Changes

  • Add new demo showcasing how to implement Google Native/OneTap sign in on android & use an in-app web browser for oauth
  • Add experimental support for SSO Logins (untested, feedback appreciated)
    SSO Logins
    client.gotrue.loginWith(SSO.withProvider("providerId"))
    client.gotrue.loginWith(SSO.withDomain("domain"))
    Works same as oauth, deeplinking used for mobile and http callback server on desktop
  • Add GoTrue#retrieveSSOUrl(type)
  • Add experimental support for the PKCE login flow. Changing to it is as simple as:
    //change the login flow to PKCE in the GoTrue configuration
    val client = createSupabaseClient(url, key) {
        install(GoTrue) {
            flowType = FlowType.PKCE 
        }
    }
    Note: You can customize the way the code verifiers get saved in the GoTrue config
  • Add GoTrue#exchangeCodeForSession(code)
  • Expose GoTrue#parseFragmentAndImportSession(fragment), so you don't have to parse all this by yourself when using a custom OAuth implementation
  • Add GoTrue#oAuthUrl(provider), to easily get the oauth url when using a custom implementation
  • Add scopes & queryParams properties to OAuth configuration:
    client.gotrue.loginWith(Google) {
       scopes.add("email")
       queryParams["key"] = "value"
    } 
  • Add missing properties to UserSession: providerToken & providerRefreshToken

(tag is pointing to the wrong branch, the right one would be development)

Don't miss a new supabase-kt release

NewReleases is sending notifications on new releases.