For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

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 signed in using AAL2

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