One last question.. how to automatically verify em...
# support-questions-legacy
e
One last question.. how to automatically verify emails when creating a user programatically on backend
n
Hi @Erick You would basically call
CreateEmailVerificationToken
to generate a token and then call
VerifyEmailUsingToken
with that token to mark an email as verified.
e
Does email verification automatically apply for oauth, or no?
n
That would depend on the third party provider, we fetch verification status from the provider
e
emailverification.IsEmailVerified(user.ID, &user.Email), why is user email required here - i noticed it's a pointer, so it might not be
n
It isn’t, you can pass nil with just the user I’d
4 Views