How to handle email verification in Express and React?
Hi everyone! I am trying to implement email verification after the user's signs-up for the first time, I am using Express and React both in Typescript, this is the code that I wrote to handle it in the better-auth config inside
When I click on the button to verify the email, I noticed that it calls an endpoint I don't have in my backend which is:
How should I proceed from here on, I am really confused since I really want to keep authentication server side?
Thanks
auth.ts file server-side:When I click on the button to verify the email, I noticed that it calls an endpoint I don't have in my backend which is:
http://localhost:3000/api/auth/verify-email?token=jwt&callbackURL=/How should I proceed from here on, I am really confused since I really want to keep authentication server side?
Thanks