createAccount method

Future<XRPCResponse<CreateAccountOutput>> createAccount({
  1. required String handle,
  2. required String email,
  3. required String password,
  4. String? inviteCode,
  5. String? recoveryKey,
  6. Map<String, dynamic>? plcOp,
})

Implementation

Future<core.XRPCResponse<CreateAccountOutput>> createAccount({
  required String handle,
  required String email,
  required String password,
  String? inviteCode,
  String? recoveryKey,
  Map<String, dynamic>? plcOp,
}) async =>
    await _ctx.post(
      ns.comAtprotoServerCreateAccount,
      body: {
        'handle': handle,
        'email': email,
        'password': password,
        'inviteCode': inviteCode,
        'recoveryKey': recoveryKey,
        'plcOp': plcOp,
      },
      to: CreateAccountOutput.fromJson,
    );