generateMfaSecretWithHttpInfo method
Generate MFA secret
Generates an multi-factor authentication secret for a user and returns it as a string and as base64 encoded QR code image. ##### Permissions Must be logged in as the user or have the edit_other_users
permission.
Note: This method returns the HTTP Response
.
Parameters:
- String userId (required): User GUID
Implementation
Future<Response> generateMfaSecretWithHttpInfo(
String userId,
) async {
// ignore: prefer_const_declarations
final path = r'/users/{user_id}/mfa/generate'.replaceAll('{user_id}', userId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}