Skip to content

1.0.0-alpha-1

Pre-release
Pre-release

Choose a tag to compare

@jan-tennert jan-tennert released this 02 May 20:13
2441822

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)