Kotlin: Get Authenticator Assurance Level

Examples

Get the AAL details of the current session

val (current, next) = supabase.gotrue.mfa.getAuthenticatorAssuranceLevel()

Check whether the user has at least one verified factor

val enabled = supabase.gotrue.mfa.isMfaEnabled
//flow variant, automatically emitting new values on session changes
val enabledFlow = supabase.gotrue.mfa.isMfaEnabledFlow

Check whether the user is logged in using AAL2

val loggedInUsingMfa = supabase.gotrue.mfa.loggedInUsingMfa
//flow variant, automatically emitting new values on session changes
val loggedInUsingMfaFlow = supabase.gotrue.mfa.loggedInUsingMfaFlow