Verified MFA doesn't set AAL to aal2
#11383
-
In my Next.js app, I have a user flow that enrolls and verifies a user's MFA. When I sign in, the AAL is set to This is the JSON object I get when I call {
"currentLevel": "aal1",
"nextLevel": "aal1",
"currentAuthenticationMethods": [
{
"method": "password",
"timestamp": 1672514024
}
]
} And this is the output of {
"all": [
{
"id": "460ee0bc-1f3e-xxxx-a128-01d6a07e140b",
"created_at": "2022-12-31T15:12:56.170472Z",
"updated_at": "2022-12-31T15:13:26.311767Z",
"status": "verified",
"factor_type": "totp"
}
],
"totp": [
{
"id": "460ee0bc-1f3e-xxxx-a128-01d6a07e140b",
"created_at": "2022-12-31T15:12:56.170472Z",
"updated_at": "2022-12-31T15:13:26.311767Z",
"status": "verified",
"factor_type": "totp"
}
]
} Does anybody have any idea as to why the AAL isn't being changed? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 14 replies
-
I've also experienced something similar - enrolling + validating while signed in results in aal2 being set correctly for both, but signing out then signing back in sets it to aal1 for both |
Beta Was this translation helpful? Give feedback.
-
I'm running into the same issue. Is there any update on this? |
Beta Was this translation helpful? Give feedback.
-
Has this been resolved? This issue is still present in supabase.auth.onAuthStateChange(async (event, session) => {
....
....
if (event === 'SIGNED_IN') {
const { data, error }: AuthMFAGetAuthenticatorAssuranceLevelResponse =
await supabase.auth.mfa.getAuthenticatorAssuranceLevel()
const { currentLevel, nextLevel, currentAuthenticationMethods } = data
// console.log(currentLevel, currentAuthenticationMethods)
aal1
{
"method": "password",
"timestamp": 1735318275
} |
Beta Was this translation helpful? Give feedback.
I'm running into the same issue. Is there any update on this?