Returns the Authenticator Assurance Level (AAL) for the active session.
aal1
refers to having the 1st factor of authentication such as an email and password or OAuth sign-in while aal2
refers to the 2nd factor of authentication such as a time-based, one-time-password (TOTP).nextLevel
field will return aal2
, else, it will return aal1
.final res = supabase.auth.mfa.getAuthenticatorAssuranceLevel();
final currentLevel = res.currentLevel;
final nextLevel = res.nextLevel;
final currentAuthenticationMethods = res.currentAuthenticationMethods;