Returns the Authenticator Assurance Level (AAL) for the active session.
aal1
means the user has signed in with their first factor, such as email, password, or OAuth sign-in. An AAL of aal2
means the user has also signed in with their second factor, such as a time-based, one-time-password (TOTP).nextLevel
field returns aal2
. Otherwise, it returns aal1
.final res = supabase.auth.mfa.getAuthenticatorAssuranceLevel();
final currentLevel = res.currentLevel;
final nextLevel = res.nextLevel;
final currentAuthenticationMethods = res.currentAuthenticationMethods;