Is there any way I can implement 2FA with supertok...
# support-questions
λ
Is there any way I can implement 2FA with supertokens? (i know its due to be implemented soon but its a requirement in my project any advice or help is appreciated)
r
Hey @Λ C Ξ L X R D
Yes. You can implement it now. You will have to initialise both the recipes (one for first factor and one for second factor)
Then during first factor login, you will need to mark the session such that it indicates on first factor being completed.
Your APIs and frontend routes should check that both factors r completed (from the access token payload) before granting access
Then when the user completes the second factor, the access token payload should be updated to indicate that
λ
Thank youu will check it out
4 Views