authorizeWithTalk method

Future<String> authorizeWithTalk({
  1. required String redirectUri,
  2. String? nonce,
  3. List<String>? channelPublicId,
  4. List<String>? serviceTerms,
  5. String? codeVerifier,
})

KO: 카카오톡으로 로그인: 리다이렉트 방식
EN: Login with Kakao Talk through redirection

Implementation

Future<String> authorizeWithTalk({
  required String redirectUri,
  String? nonce,
  List<String>? channelPublicId,
  List<String>? serviceTerms,
  String? codeVerifier,
}) async {
  SdkLog.d(
    '[AuthCodeClient.authorizeWithTalk] started | redirectUri=$redirectUri channelCount=${channelPublicId?.length ?? 0} serviceTermsCount=${serviceTerms?.length ?? 0} nonceProvided=${nonce != null}',
  );
  final code = await _platform.authorizeWithTalk(
    redirectUri,
    codeVerifier != null ? PKCE(codeVerifier) : null,
    nonce,
    channelPublicId,
    serviceTerms,
  );
  SdkLog.i('[AuthCodeClient.authorizeWithTalk] completed');
  return code;
}