login2FAWithHttpInfo method
Complete 2FA login
Completes a login that requires 2FA verification. Called after /api/v1/auth/login returns requires_2fa: true.
Note: This method returns the HTTP Response.
Parameters:
- TwoFactorLoginRequest twoFactorLoginRequest (required):
Implementation
Future<Response> login2FAWithHttpInfo(TwoFactorLoginRequest twoFactorLoginRequest,) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/auth/2fa/login';
// ignore: prefer_final_locals
Object? postBody = twoFactorLoginRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}