https://supertokens.com/ logo
Title
a

AlbertasK

02/20/2023, 9:06 AM
Hi Team! Our client's email verification link has expired, and he cannot login either sign-up, is it possible to use sendVerificationEmail function to send him verification link for a second time? Because it seems that it needs some auth or something then I try to use this function
r

rp

02/20/2023, 9:07 AM
hey @AlbertasK
yes it is possible. You can do that via our user management dashboard
a

AlbertasK

02/20/2023, 9:11 AM
Is it possible to do it programmatically without dashboard, just using sendVerificationEmail function? Because maybe we will have many clients with expired links, so it would be very hard to do it via dashboard for each of them
r

rp

02/20/2023, 11:35 AM
It is possible to do it programatically as well
you can call the email verification recipe's
createEmailVerificationToken
function and then create a link using that and send then link using the sendEmail function from the email verification recipe as well.