Skip to content

How could I implement a simple passwordless email OTP code session #669

Closed Answered by vvo
mcunningham asked this question in Q&A
Discussion options

You must be logged in to vote

Hey there, there's now a magic link demo: https://get-iron-session.vercel.app/app-router-magic-links. As for OTP codes I have no prior knowledge on how to properly, and securely, implement it. But you would probably generate a unique code, associate it in your database to the user trying to login, email it to them and then check the value matches what you have in your database. There's not even a need for iron-session here at this point.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vvo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants