You can add a variable like needsMfa to the user returned in useAuth and use that to render the extra MFA step. I'd say it mostly depends on what the backend is using but you can add all that logic to useAuth relatively easy.
Just make sure your app renders the MFA form when the user is eligible for that.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Very good tutorial. How can you plug in MFA?
You can add a variable like
needsMfa
to theuser
returned inuseAuth
and use that to render the extra MFA step. I'd say it mostly depends on what the backend is using but you can add all that logic touseAuth
relatively easy.Just make sure your app renders the MFA form when the user is eligible for that.