finishEmailAccountRegistration method
Completes a new account registration, creating a new auth user with a profile, and creating a new authenticated session for the user.
If the registration failed, one of the following exceptions is thrown:
EmailAccountRequestExpiredException
EmailAccountRequestNotFoundException
EmailAccountRequestTooManyAttemptsException
EmailAccountRequestUnauthorizedException
Implementation
_i2.Future<_i8.AuthSuccess> finishEmailAccountRegistration({
required _i9.UuidValue accountRequestId,
required String verificationCode,
}) =>
caller.callServerEndpoint<_i8.AuthSuccess>(
'auth',
'finishEmailAccountRegistration',
{
'accountRequestId': accountRequestId,
'verificationCode': verificationCode,
},
);