Magic Links vs EmailOTP?
I don't understand the difference between those 2 auth methods. isn't the same?
2 Replies
No, a magic link is a one-time link the user clicks on sent via email. An OTP is akin to a SMS OTP where you get a one-time code sent to the users email that they must enter on your app.
Ah i see. I am surprised both plugins were not combined given that the implementation could have been similar to how we deal with emailVerification - we get to choose what to send to user later (url or token):
emailVerification: {
sendVerificationEmail: async ( { user, url, token }, request) => {