I have created an app and successfully implemented a simple signup and signin using NextAuth.
Upon signup, when the user enters the details and clicks on signup, they receive an email with a button to redirect to my app signin, in the URL I am also sending the verifyCode to verify the user!
So in my mongoDB, I am storing the verifyCode and the verifyCodeExpiry to also check if the code is expired or not!
I want to now do two-factor authentication, and I think I can use the same verifyCode and verifyCodeExpiry but I do not understand what exaclty should I do?
There’s anything on the docs for it! I even tried searching the web and couldn’t find anything related to this flow using NextAuth!