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}
)

사용자가 아직 동의하지 않은 개인정보 및 접근권한 동의 항목에 대하여 동의를 요청 화면을 출력하고 인가 코드를 요청하는 함수입니다. 인가 코드를 받을 수 있는 서버 개발이 필요합니다.

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;
  }
}