-
As we enforce multi-factor authentication in our project, I am trying to implement a flow where the user will be redirected to the settings if 2FA isn't setup but can't find a method to check for it. Thank you beforehand! |
Beta Was this translation helpful? Give feedback.
Answered by
aeneasr
Oct 20, 2022
Replies: 1 comment 1 reply
-
That's a great question! We don't have a dedicated API yet that shows what methods a user has set up, but we are working on adding this. To work around this you can do the following:
Hope this helps! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kaboomdev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's a great question! We don't have a dedicated API yet that shows what methods a user has set up, but we are working on adding this.
To work around this you can do the following:
aal
is of the identity. If it is notaal2
, it means that the user does not have MFA set up. If that is the case, redirect them to your settings page in the middlewareHope this helps!