atlas-app-services-examples icon indicating copy to clipboard operation
atlas-app-services-examples copied to clipboard

Integration Testing Email/Password Registration with Confirmation Email

Open trycatchdonothing opened this issue 2 years ago • 2 comments

Is there a way to use the email confirmation option with e-mail/password registration when writing integration tests?

In your example here, you have the following code:

  await app.emailPasswordAuth.registerUser({ email, password });
  user = await app.logIn(Realm.Credentials.emailPassword(email, password));

I assume registration is set to auto in order to make this work.

trycatchdonothing avatar Feb 11 '23 20:02 trycatchdonothing

thanks for the question. i think that'd be challenging to implement solely from an App Services-side perspective. you'd also need to implement acceptance handling from whatever email address you send the email to.

mongodben avatar Jun 14 '23 13:06 mongodben

Is there a way to generate email on the failure of trigger?

neha-yadav-nationwide avatar Sep 25 '23 13:09 neha-yadav-nationwide