listSecondFactorsWithHttpInfo method
List second factors
Returns a list of second factors. The second factors are returned sorted by creation date, with the most recent second factors appearing first.
Note: This method returns the HTTP Response
.
Parameters:
Implementation
Future<Response> listSecondFactorsWithHttpInfo(String account, String user,) async {
// ignore: prefer_const_declarations
final path = r'/accounts/{account}/users/{user}/second-factors'
.replaceAll('{account}', account)
.replaceAll('{user}', user);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}