atlas-app-services-examples
atlas-app-services-examples copied to clipboard
Integration Testing Email/Password Registration with Confirmation Email
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.
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.
Is there a way to generate email on the failure of trigger?