request2FAEmailCodeWithHttpInfo method
Future<Response>
request2FAEmailCodeWithHttpInfo(
- TwoFactorEmailCodeRequest twoFactorEmailCodeRequest
Request email 2FA code
Sends a 2FA verification code via email as a backup method. Rate limited to one request per minute.
Note: This method returns the HTTP Response.
Parameters:
- TwoFactorEmailCodeRequest twoFactorEmailCodeRequest (required):
Implementation
Future<Response> request2FAEmailCodeWithHttpInfo(TwoFactorEmailCodeRequest twoFactorEmailCodeRequest,) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/auth/2fa/email-code';
// ignore: prefer_final_locals
Object? postBody = twoFactorEmailCodeRequest;
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,
);
}