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_st
05/14/2022, 5:14 AM
Hey @Λ C Ξ L X R D
rp_st
05/14/2022, 5:15 AM
Yes. You can implement it now. You will have to initialise both the recipes (one for first factor and one for second factor)
rp_st
05/14/2022, 5:16 AM
Then during first factor login, you will need to mark the session such that it indicates on first factor being completed.
rp_st
05/14/2022, 5:16 AM
Your APIs and frontend routes should check that both factors r completed (from the access token payload) before granting access
rp_st
05/14/2022, 5:17 AM
Then when the user completes the second factor, the access token payload should be updated to indicate that