Implement manual OTP - next-auth migration
Love better-auth!
I need help with migrating our production app from next auth, as you can see in the screenshot; we used the credentials provider, here’s some important points:
I need help with migrating our production app from next auth, as you can see in the screenshot; we used the credentials provider, here’s some important points:
- We need to handle the generation and saving of OTP manually outside of the auth library.
- Ability to call the auth function with the number and OTP.
- Verifying the OTP manually as we use Redis for that.
- Only one function that both log in existing users or creating a user for new ones and logging them in.
