Is there a way to manually generate a verification link for a user? Found https://supertokens.com/do...
b
Is there a way to manually generate a verification link for a user? Found https://supertokens.com/docs/emailpassword/common-customizations/email-verification/generate-link-manually but not yet documented. The use case for this being the username has been changed, which marks it as not verified anymore, I want to then generate a new verification link and send that through to the new username once it has changed. Is this possible currently? or would I only be able to fire the new verification email once the user has created a session with the new username? thanks in advance 🙂
b
brilliant, will have a look through that! thank you 🙂
One more question on changing username, Using the node SDK version 14.0.2, when i call EmailPassword.updateEmailOrPassword it's not validating the email. Noticed there is applyPasswordPolicy bool, is there a similar thing to ensure the new email is valid?
r
Not really. You can validate the email with a simple regex before calling the function though
2 Views