authorizeWithNewScopes method

Future<String> authorizeWithNewScopes({
  1. required List<String> scopes,
  2. required String redirectUri,
  3. String? clientId,
  4. String? codeVerifier,
  5. String? nonce,
  6. bool webPopupLogin = false,
})

KO: 추가 항목 동의 받기
EN: Request additional consent

Implementation

Future<String> authorizeWithNewScopes({
  required List<String> scopes,
  required String redirectUri,
  String? clientId,
  String? codeVerifier,
  String? nonce,
  bool webPopupLogin = false,
}) async {
  final agt = await _kauthApi.agt();
  try {
    return await authorize(
      clientId: clientId,
      redirectUri: redirectUri,
      scopes: scopes,
      agt: agt,
      codeVerifier: codeVerifier,
      nonce: nonce,
      webPopupLogin: webPopupLogin,
    );
  } catch (e) {
    rethrow;
  }
}