Closed javtran closed 3 months ago
This looks good! A few things that I think we should change looking a bit closer...
- Since we're verifying through a link, let's make the verification token a full UUID string so that it's harder to spoof.
- After a successful verification and setting the emailVerifiedAt, let's also clear the token from the User's record.
- I think we're missing a UNIQUE constraint on the emailVerificationToken column in the schema...
I addressed the changes!
96