One last question.. how to automatically verify em...
# support-questions-legacy
b
One last question.. how to automatically verify emails when creating a user programatically on backend
n
Hi @bladerpc You would basically call
CreateEmailVerificationToken
to generate a token and then call
VerifyEmailUsingToken
with that token to mark an email as verified.
b
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
b
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
3 Views