1.I’m trying to use realm react-native sdk。
2.In the realm settings, i set Send Confirmation Email
or Confirmation Function
options。
3.when i call app.emailPasswordAuth.registerUser({ email, password })
I did not receive the email。
4.Then I tried different email addresses。
5.Try calling callResetPasswordFunction
resendConfirmationEmail
resetPassword
I still did not receive the email…
Are you sure you enabled both the email and password authentication as well as the email confirmation feature under the authentication tab in the realm dashboard?
Hi,
Welcome to the MongoDB Developer Community!
Regarding your problem:
3.when i call app.emailPasswordAuth.registerUser({ email, password }) I did not receive the email。
The registerUser()
function won’t automatically send a confimation email for the user. For that you need to implement the confirmUser()
function after you have registered the user since you need the token
and tokenID
parameters that the function will return in order to send with confirmUser({token, tokenId})
.
I would recommend checking out our Atlas App Services documentation section regarding the user email confirmation so you can get a better understanding on the steps involved in the process.
I hope this helps!