authorizeWithNewScopes method

Future<String> authorizeWithNewScopes({
  1. required String redirectUri,
  2. required List<String> scopes,
  3. String? nonce,
  4. String? codeVerifier,
})

KO: 동의항목 추가 동의 요청
EN: Request additional consent

Implementation

Future<String> authorizeWithNewScopes({
  required String redirectUri,
  required List<String> scopes,
  String? nonce,
  String? codeVerifier,
}) async {
  SdkLog.d(
    '[AuthCodeClient.authorizeWithNewScopes] started | redirectUri=$redirectUri scopeCount=${scopes.length} nonceProvided=${nonce != null}',
  );
  final agt = await _api.agt();

  final code = await _platform.authorizeWithNewScopes(
    agt,
    redirectUri,
    scopes,
    codeVerifier != null ? PKCE(codeVerifier) : null,
    nonce,
  );
  SdkLog.i('[AuthCodeClient.authorizeWithNewScopes] completed');
  return code;
}