revokeScopes method

Future<ScopeInfo> revokeScopes(
  1. List<String> scopes
)

Revoke consent to a specific consent item of the user and returns a detailed list of remaining consent items.

Implementation

Future<ScopeInfo> revokeScopes(List<String> scopes) {
  return ApiFactory.handleApiError(() async {
    Response response = await _dio
        .post('/v2/user/revoke/scopes', data: {'scopes': jsonEncode(scopes)});
    return ScopeInfo.fromJson(response.data);
  });
}