https://supertokens.com/ logo
λ

Λ C Ξ L X R D

05/14/2022, 1:01 AM
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

rp

05/14/2022, 5:14 AM
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
λ

Λ C Ξ L X R D

05/15/2022, 6:15 PM
Thank youu will check it out
4 Views