requestWithTalk method

Future<String> requestWithTalk({
  1. String? clientId,
  2. String? redirectUri,
  3. List<String>? scopes,
  4. List<Prompt>? prompts,
  5. String? state,
  6. String? codeVerifier,
})

Requests authorization code via KakaoTalk.

This will only work on devices where KakaoTalk is installed. You MUST check if KakaoTalk is installed before calling this method with isKakaoTalkInstalled.

Implementation

Future<String> requestWithTalk(
    {String? clientId,
    String? redirectUri,
    List<String>? scopes,
    List<Prompt>? prompts,
    String? state,
    String? codeVerifier}) async {
  return _parseCode(await _openKakaoTalk(
      clientId ?? _platformKey(),
      redirectUri ?? "kakao${_platformKey()}://oauth",
      codeVerifier,
      prompts,
      state));
}