revokeScopes method

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

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

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

Implementation

Future<ScopeInfo> revokeScopes(List<String> scopes) async {
  SdkLog.d('[UserApi.revokeScopes] started | scopeCount=${scopes.length}');
  final response = await _client.post(
    Constants.v2RevokeScopesPath,
    data: {Constants.scopes: jsonEncode(scopes)},
  );
  final info = ScopeInfo.fromJson(response.data);
  SdkLog.i(
    '[UserApi.revokeScopes] completed | remainingScopeCount=${info.scopes?.length ?? 0}',
  );
  return info;
}