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 LoginsWorks same as oauth, deeplinking used for mobile and http callback server on desktopclient.gotrue.loginWith(SSO.withProvider("providerId")) client.gotrue.loginWith(SSO.withDomain("domain"))
- Add
GoTrue#retrieveSSOUrl(type) - Add experimental support for the PKCE login flow. Changing to it is as simple as:
Note: You can customize the way the code verifiers get saved in the GoTrue config
//change the login flow to PKCE in the GoTrue configuration val client = createSupabaseClient(url, key) { install(GoTrue) { flowType = FlowType.PKCE } }
- 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&queryParamsproperties 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)