revokeScopes method

Future<ScopeInfo> revokeScopes({
  1. required List<String> scopes,
})

KO: 동의 철회하기
동의 항목 ID 목록은 scopes에 전달

EN: Revoke consent
Pass a list of the scope IDs to scopes

Implementation

Future<ScopeInfo> revokeScopes({required List<String> scopes}) {
  return ApiFactory.handleApiError(() async {
    Response response = await _dio.post(Constants.v2RevokeScopesPath,
        data: {Constants.scopes: jsonEncode(scopes)});
    return ScopeInfo.fromJson(response.data);
  });
}