deleteAttributes method

Future<bool> deleteAttributes(
  1. List<String> attributeList
)

This is used by an authenticated user to delete a list of attributes

Implementation

Future<bool> deleteAttributes(List<String> attributeList) async {
  if (!(_signInUserSession != null && _signInUserSession!.isValid())) {
    throw Exception('User is not authenticated');
  }

  final paramsReq = {
    'AccessToken': _signInUserSession!.getAccessToken().getJwtToken(),
    'UserAttributeNames': attributeList,
  };
  await client!.request('DeleteUserAttributes', paramsReq);

  return true;
}