Kotlin: Get Authenticator Assurance Level

Examples

Get the AAL details of the current session

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

Check whether the user has at least one verified factor

val (enabled, _) = supabase.auth.mfa.status
//flow variant, automatically emitting new values on session changes
val statusFlow = supabase.auth.mfa.statusFlow

Check whether the user is logged in using AAL2

val (_, active) = supabase.auth.mfa.status
//flow variant, automatically emitting new values on session changes
val statusFlow = supabase.auth.mfa.statusFlow