deleteAuthenticators method
Future<TDeleteAuthenticatorsResponse>
deleteAuthenticators({
- required TDeleteAuthenticatorsBody input,
Remove authenticators from a user.
Sign the provided TDeleteAuthenticatorsBody with the client's stamp function and submit the request (POST /public/v1/submit/delete_authenticators).
See also: stampDeleteAuthenticators.
Implementation
Future<TDeleteAuthenticatorsResponse> deleteAuthenticators({
required TDeleteAuthenticatorsBody input,
}) async {
final body = packActivityBody(
bodyJson: input.toJson(),
fallbackOrganizationId: input.organizationId ??
config.organizationId ??
(throw Exception(
"Missing organization ID, please pass in a sub-organizationId or instantiate the client with one.")),
activityType: 'ACTIVITY_TYPE_DELETE_AUTHENTICATORS',
);
return await request<Map<String, dynamic>, TDeleteAuthenticatorsResponse>(
"/public/v1/submit/delete_authenticators",
body,
(json) => TDeleteAuthenticatorsResponse.fromJson(
transformActivityResponse(json, 'DeleteAuthenticators')));
}