Does the email verification recipe support changing a users email address? We would need to send emails to both the old email and new email.. and then only update the users email once the verificaton flow completed
r
rp
02/20/2023, 12:36 PM
hey @PitchAsh
you can always call the email verification functions directly in a custom API.
For examlpe, you can make an API which takes the "new" (unverfied) email and calls the emailverification.createEmailVerificationToken function and then send the link to that user
p
PitchAsh
02/20/2023, 12:50 PM
So im just using super tokens in this case to generate and track the links..
r
rp
02/20/2023, 12:51 PM
Yea. And consume them
p
PitchAsh
02/20/2023, 12:56 PM
i would need to mark the user in some way so I know this is an email update flow not an email verify flow.. but that should be ok