startRegistration method
Starts the registration for a new user account with an email-based login associated to it.
Upon successful completion of this method, an email will have been
sent to email with a verification link, which the user must open to
complete the registration.
Returns an account request ID, which can be used to complete the registration. If the email is already registered, the returned ID will not be valid.
Throws an EmailAccountRequestException with reason
EmailAccountRequestExceptionReason.tooManyAttempts if too many
registrations have been started for email within the configured
timeframe.
Implementation
Future<UuidValue> startRegistration(
Session session, {
required String email,
}) async {
return emailIdp.startRegistration(
session,
email: email,
);
}