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.isMfaEnabled
//flow variant, automatically emitting new values on session changes
val enabledFlow = supabase.auth.mfa.isMfaEnabledFlow

Check whether the user is logged in using AAL2

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