Skip to main content

Login method selection

loginWithKakao() opens the Android or iOS SDK's login method selector. After the user chooses KakaoTalk or Kakao Account and completes login, it returns the same KakaoLoginToken as login(). Closing the selector or cancelling login rejects with the SDK error.

import { loginWithKakao } from '@react-native-kakao/user';

const token = await loginWithKakao({ uiMode: 'dark' });

Options​

All options are optional. Account login options apply when the user selects Kakao Account.

OptionMeaningDefault
uiModeSelector theme: auto, light, or darkauto
promptsAccount login prompts: an array of Login, Create, Cert, or SelectAccountNone
loginHintEmail, phone number, or Kakao Mail ID to prefill in the account ID fieldNone
channelPublicIdsChannel profile IDs to display on the consent screen. Requires partner approvalNone
serviceTermsService term tags to include on the consent screenNone
nonceValue used to verify the OpenID Connect ID token. Android onlyNone
ios.orientationiOS selector orientation: auto, portrait, or landscapeauto
ios.launchMethodiOS KakaoTalk launch method: UniversalLink or CustomSchemeUniversalLink

The current iOS SDK selector does not forward nonce to account login. Providing it on iOS rejects before opening the selector. Use login({ nonce }) when iOS ID token verification requires a nonce.

Platform support​

The JavaScript SDK does not provide this selector, so web rejects with Package-UnsupportedPlatform. Use login({ web: { redirectUri } }) on web.