revokeScopes method
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);
});
}