emailVerify method

Future<AuthResponse> emailVerify(
  1. String email,
  2. String code
)

POST /v1/auth/email/verify — consume code, find-or-create user, mint JWT.

Implementation

Future<AuthResponse> emailVerify(String email, String code) async {
  final res = await request(
    _opts,
    method: 'POST',
    path: '/v1/auth/email/verify',
    json: {'email': email, 'code': code},
  ) as Map<String, dynamic>;
  return AuthResponse.fromJson(res);
}