validateAccount method

Future<UserInfo?> validateAccount(
  1. String email,
  2. String verificationCode
)

Attempts to validate the account with the given email and verification code. If successful, a UserInfo is returned. If the attempt is not a success, null is returned.

Implementation

Future<UserInfo?> validateAccount(
  String email,
  String verificationCode,
) async {
  try {
    return await caller.email.createAccount(email, verificationCode);
  } catch (e) {
    return null;
  }
}