SSO

Single Sign On (SSO) auth provider for supabase.

Check the docs for more information.

Types

Link copied to clipboard
data class Config(var providerId: String? = null, var captchaToken: String? = null, var domain: String? = null)

The SSO config

Link copied to clipboard
@Serializable
data class Result(val url: String)

The result of an SSO login

Functions

Link copied to clipboard
open suspend override fun login(supabaseClient: SupabaseClient, onSuccess: suspend (UserSession) -> Unit, redirectUrl: String?, config: SSO.Config.() -> Unit?)

Used to login a user

Link copied to clipboard
open suspend override fun signUp(supabaseClient: SupabaseClient, onSuccess: suspend (UserSession) -> Unit, redirectUrl: String?, config: SSO.Config.() -> Unit?)

Used to sign up a user.