loginUser abstract method

  1. @POST.new('/auth/login')
Future<AuthLoginResponse> loginUser({
  1. @Body.new() required LoginRequest body,
})

Login account.

Authenticate with email and password. Returns authentication token if credentials are valid and MFA is not required. If MFA is enabled, returns a ticket for MFA verification.

body - Name not received - field will be skipped.

Implementation

@POST('/auth/login')
Future<AuthLoginResponse> loginUser({@Body() required LoginRequest body});