From 40a4765dd6a2836ac9493b4b0b0ceadb9ed7661e Mon Sep 17 00:00:00 2001 From: kyy Date: Tue, 3 Feb 2026 12:30:17 +0900 Subject: [PATCH] =?UTF-8?q?grant=5Fscope=20=ED=8C=8C=EB=9D=BC=EB=AF=B8?= =?UTF-8?q?=ED=84=B0=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- userfront/lib/core/services/auth_proxy_service.dart | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/userfront/lib/core/services/auth_proxy_service.dart b/userfront/lib/core/services/auth_proxy_service.dart index 92ca4a40..833cee12 100644 --- a/userfront/lib/core/services/auth_proxy_service.dart +++ b/userfront/lib/core/services/auth_proxy_service.dart @@ -238,12 +238,19 @@ class AuthProxyService { } } - static Future> acceptConsent(String consentChallenge) async { + static Future> acceptConsent(String consentChallenge, {List? grantScope}) async { final url = Uri.parse('$_baseUrl/api/v1/auth/consent/accept'); + final body = { + 'consent_challenge': consentChallenge, + }; + if (grantScope != null) { + body['grant_scope'] = grantScope; + } + final response = await http.post( url, headers: {'Content-Type': 'application/json'}, - body: jsonEncode({'consent_challenge': consentChallenge}), + body: jsonEncode(body), ); if (response.statusCode == 200) {