클라이언트가 다른 사용자의 External ID를 사칭하거나 소유하지 않은 이메일 및 SMS 구독을 가져가지 못하도록 로그인을 보호합니다. 네이티브 Android SDK 5.9.0+, iOS SDK 5.8.0+, Web SDK 160900+에서 정식 제공됩니다. 크로스 플랫폼 SDK는 아직 지원되지 않습니다.
서버에서 JWT를 생성하고 OneSignal.login에 전달하면 클라이언트가 다른 External ID를 사칭할 수 없습니다. 같은 토큰으로 이메일 및 SMS 구독 추가와 일부 User REST API 호출도 승인할 수 있습니다.신원 확인은 네이티브 Android SDK, iOS SDK 및 Web SDK에서 정식 제공됩니다. 크로스 플랫폼 SDK도 곧 지원될 예정입니다.
곧 지원 예정. login(externalId, jwt)는 지금 사용할 수 있지만 updateUserJwt와 userJwtInvalidated 이벤트는 아직 래퍼에 없습니다.
React Native 및 Expo, Flutter, Unity, Cordova 및 Ionic, Capacitor, .NET MAUI
아직 지원되지 않음
지원되지 않는 SDK는 login에 JWT를 전달할 방법이 없습니다. 이러한 SDK에 대한 지원은 곧 제공될 예정입니다.OneSignal CDN(/sdks/web/v16/)에서 Web SDK를 로드하는 사이트는 160900 이상 버전을 자동으로 받습니다.신원 확인을 활성화하면 다음을 보호할 수 있습니다.
사용자 로그인
이메일 구독 추가
SMS 구독 추가
사용자 ID 및 별칭 수정
앱이 JWT를 보낼 수 없는 SDK를 사용하더라도 대시보드에서는 모든 앱에 대해 Token Identity Verification을 켤 수 있습니다. 이 토글은 모든 플랫폼에 걸쳐 앱 전체에 적용됩니다.앱의 클라이언트 중 하나라도 크로스 플랫폼 SDK를 사용한다면 토글을 켜지 마세요. 토글이 켜지면 OneSignal은 해당 클라이언트에서 사용자와 구독을 생성하거나 업데이트하는 요청을 거부합니다. login, addEmail, addSms가 실패하며, 해당 클라이언트의 새 기기는 푸시 구독을 등록할 수 없습니다.그래도 지금 키를 생성하고 서버에서 JWT 서명을 구축할 수 있습니다. 검증을 강제하는 것은 토글뿐입니다.
사전 요구 사항 \
푸시 플랫폼이 구성된 기존 OneSignal 앱.
login을 호출하는 모든 클라이언트가 지원되는 SDK를 사용: 네이티브 Android SDK 5.9.0+, 네이티브 iOS SDK 5.8.0+ 또는 Web SDK 160900+.
사용자를 인증하고 JWT에 서명할 수 있는 백엔드.
OneSignal 대시보드의 Settings > Keys & IDs 접근 권한. Identity Verification 섹션은 모든 앱에서 사용할 수 있습니다. 지원팀에 문의할 필요가 없습니다.
키 생성 \
다음 단계를 순서대로 완료하세요. 키를 생성하고, JWT를 만든 다음, 앱에 추가합니다. 백엔드에서 JWT를 발급할 수 있고 앱에서 이를 login에 전달할 수 있을 때까지 Token Identity Verification 토글을 켜지 마세요.OneSignal 계정에 로그인하고 Settings > Keys & IDs > Identity Verification으로 이동합니다.
신원 확인 구성
Generate New Keys를 클릭하여 새 키 쌍을 만듭니다.
새 키 쌍 만들기
PEM 파일을 다운로드하거나 개인 키를 복사하여 안전하게 보관하세요. 이 개인 키는 App API key가 아닙니다. 신원 확인 JWT에 서명하는 용도로만 사용하세요.
신원 확인 키 쌍
개인 키는 항상 키 관리 시스템과 같은 안전한 환경에 저장하세요. 클라이언트 측 코드, 공개 저장소 또는 로그에 개인 키를 절대 노출하지 마세요.
이제 서버에 저장된 개인 키와 OneSignal이 보유한 공개 키가 준비되었습니다.
JWT 생성 \
토큰에 서명하기 전에 자체 서버에서 사용자를 인증하세요. 인증에 성공하면 아래 클레임으로 ES256 JWT에 서명하고 인증 응답에 담아 기기로 반환합니다. 앱에 백엔드가 없다면 사용자를 확인하고 이러한 토큰에 서명하는 일만 하는 작은 서버를 구축하세요. 기기에서 JWT에 서명하지 마세요.
JWT 페이로드 \
클레임
필수
설명
iss
예
OneSignal App ID.
exp
예
밀리초가 아닌 초 단위의 Unix 타임스탬프로 지정한 만료 시간. 현재로부터 1시간 이내로 설정하세요. OneSignal은 만료된 토큰을 거부합니다.
identity
예
external_id를 포함하는 객체. 이 값은 OneSignal.login()에 전달하는 External ID와 일치해야 합니다.
subscriptions
아니요
type(Email 또는 SMS)과 token이 있는 객체 배열. 여기서 token은 JWT가 아니라 이메일 주소 또는 E.164 형식의 전화번호입니다. addEmail 또는 addSms를 호출하기 전에 이 클레임을 포함하세요.
JWT 서명 \
ES256 알고리즘(P-256 및 SHA-256을 사용하는 ECDSA)으로 JWT에 서명하세요. 다른 알고리즘은 거부됩니다. 토큰을 직접 조립하지 말고 JWT 라이브러리를 사용하세요.jsonwebtoken을 사용한 예시입니다. 이전 단계에서 다운로드한 PEM 개인 키를 전달합니다.
PEM 개인 키는 줄 바꿈을 그대로 유지한 채 저장하세요. 많은 환경 변수 시스템이 줄 바꿈을 제거하여 ES256 서명이 실패합니다. 리터럴 \n 문자를 유지하거나, 키를 base64로 인코딩한 후 런타임에 디코딩하세요.
JWT 확인 \
signOneSignalJWT()가 반환한 문자열을 로그로 남기거나 반환한 다음 디코딩하여 페이로드를 확인합니다. jwt.io는 브라우저에서 토큰을 디코딩하지만, 실제 사용자의 토큰은 비밀로 취급하고 타사 도구에 붙여 넣을 때는 테스트 토큰을 사용하세요. 디코딩된 페이로드는 다음과 같아야 합니다.
External ID와 JWT로 login을 호출합니다. 대시보드에서 Token Identity Verification이 활성화되기 전까지 SDK는 JWT를 보내지 않으므로, 토글을 켜기 전에 이 앱 업데이트를 배포할 수 있습니다. 토글을 활성화한 후에는 유효한 JWT 없이 호출한 login은 실패합니다.
성공하면 OneSignal은 기기의 구독을 External ID와 연결하고 사용자는 식별된 사용자가 됩니다.Web:login이 반환하는 promise는 OneSignal이 로그인을 수락하면 resolve됩니다. OneSignal이 JWT를 거부하면 promise가 reject되고, SDK는 userJwtInvalidated를 발생시키며, updateUserJwt를 호출한 후 로그인을 다시 시도합니다. Token Identity Verification이 켜져 있을 때 JWT 없이 login을 호출하면, updateUserJwt로 JWT를 제공할 때까지 promise가 완료되지 않습니다.Android 5.11.0 이상: 같은 요청에서 사용자의 이메일, 전화번호, 태그, 별칭을 설정하려면 login(external_id, profile)의 세 번째 인수로 JWT를 전달하세요. 프로필의 이메일과 전화번호를 JWT의 subscriptions 클레임에 포함하세요. 구독 추가를 참조하세요.
// login(external_id, profile) is a suspend function. Call it from a coroutine.val profile = OneSignalUserProfile.builder() .setEmail("user@example.com") .setSms("+15551234567") .build()val loginResult = OneSignal.login(externalId, profile, onesignalJWT)
OneSignalUserProfile profile = OneSignalUserProfile.builder() .setEmail("user@example.com") .setSms("+15551234567") .build();// Continue.with requires Android API level 24 or later. The callback may not run on the main thread.OneSignal.login(externalId, profile, onesignalJWT, Continue.with(continueResult -> { // Handle the OneSignalResult<LoginData> in continueResult.getData()}));
OneSignal이 JWT를 거부하면 loginResult는 BACKEND_ERROR 및 HTTP 상태 401로 실패하고, SDK는 다음 단계에서 설명하는 JWT 무효화 이벤트를 발생시킵니다. SDK는 로그인을 대기열에 유지하고 updateUserJwt를 호출한 후 다시 시도합니다.
2
JWT 수명 주기 이벤트 처리
OneSignal이 JWT를 거부하면(예: 만료된 경우) SDK는 JWT 무효화 이벤트를 발생시킵니다. 백엔드에서 새 토큰을 가져와 updateUserJwt에 전달하세요. 토큰이 필요한 요청은 토큰을 제공할 때까지 대기합니다. 원래 로그인 토큰에 이메일이나 SMS가 포함되지 않았다면 같은 엔드포인트를 사용해 이를 포함하는 토큰을 발급할 수 있습니다.login을 호출하기 전, 앱 시작 시 리스너를 추가하세요.
Android:Application.onCreate에서 추가하세요. 리스너는 추가된 후에 발생한 이벤트만 수신하며 백그라운드 스레드에서 호출됩니다.
iOS: SDK는 리스너를 약한 참조로 유지하므로 강한 참조를 유지하세요. 리스너는 메인 스레드에서 호출되므로 토큰을 비동기로 가져오세요. 리스너를 추가하기 전에 이벤트가 발생했다면 SDK는 리스너를 추가할 때 해당 이벤트를 전달합니다.
Web:login을 호출하기 전에 OneSignalDeferred.push 안에서 OneSignal.User.addEventListener("userJwtInvalidated", listener)로 추가하세요. 리스너는 추가된 후에 발생한 이벤트만 수신합니다. SDK는 각 리스너를 비동기로 호출하며, 예외를 발생시킨 리스너가 있어도 다른 리스너는 중단되지 않습니다.
// Called on a background thread, so a blocking network call is OK here.OneSignal.addUserJwtInvalidatedListener(event -> { String externalId = event.getExternalId(); String onesignalJWT = fetchOneSignalJwt(externalId); OneSignal.updateUserJwt(externalId, onesignalJWT);});
// Called on a background thread, so a blocking network call is OK here.OneSignal.addUserJwtInvalidatedListener { event -> val externalId = event.externalId val onesignalJWT = fetchOneSignalJwt(externalId) OneSignal.updateUserJwt(externalId, onesignalJWT)}
OneSignal.addUserJwtInvalidatedListener { event -> val externalId = event.externalId appScope.launch { val onesignalJWT = fetchOneSignalJwt(externalId) OneSignal.updateUserJwtSuspend(externalId, onesignalJWT) }}
import OneSignalFramework// The app delegate lives for the whole app session, so the SDK's weak reference stays valid.class AppDelegate: UIResponder, UIApplicationDelegate, OSUserJwtInvalidatedListener { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { OneSignal.addUserJwtInvalidatedListener(self) return true } // Called on the main thread. Fetch the token without blocking it. func onUserJwtInvalidated(event: OSUserJwtInvalidatedEvent) { let externalId = event.externalId Task { let onesignalJWT = try await fetchOneSignalJwt(externalId: externalId) OneSignal.updateUserJwt(externalId: externalId, token: onesignalJWT) } }}
@import OneSignalFramework;@interface MyListener : NSObject <OSUserJwtInvalidatedListener>@end@implementation MyListener// Called on the main thread. Fetch the token without blocking it.- (void)onUserJwtInvalidatedWithEvent:(OSUserJwtInvalidatedEvent * _Nonnull)event { NSString *externalId = event.externalId; [self fetchOneSignalJwt:externalId completion:^(NSString *onesignalJWT) { [OneSignal updateUserJwt:externalId withToken:onesignalJWT]; }];}@end// The SDK holds the listener weakly. Store it in a property that lives as long as your app.self.jwtListener = [MyListener new];[OneSignal addUserJwtInvalidatedListener:self.jwtListener];// To stop listening:[OneSignal removeUserJwtInvalidatedListener:self.jwtListener];
이후 OneSignal은 유효한 JWT가 포함되지 않은 모든 login 또는 보호된 REST API 호출을 거부합니다. 토글을 켜면 달라지는 점을 참조하세요.모바일 앱은 다음 실행 시 변경 사항을 적용합니다. 웹 페이지는 Web SDK 구성이 캐시되기 때문에 변경 사항이 적용되기까지 최대 1시간이 걸릴 수 있습니다.
토글을 켜면 달라지는 점 \
로그인:login에는 identity.external_id가 External ID와 일치하는 유효한 JWT가 필요합니다.
로그아웃된 기기: SDK는 OneSignal에 익명 사용자를 만들지 않습니다. 새로 설치한 경우 앱이 유효한 JWT로 login을 호출할 때까지 기기는 푸시 구독을 등록하지 않으므로, 그전에는 푸시 알림을 받을 수 없습니다. 로그인 전 사용자에게 푸시를 보내고 있다면 토글을 켜기 전에 이를 고려하세요.
웹 방문자: 익명 방문자는 웹 푸시 구독을 가질 수 없습니다. 방문자가 로그인하기 전에 푸시를 허용하면 SDK는 구독을 브라우저에 보관했다가 유효한 JWT로 login이 실행될 때 OneSignal로 보냅니다. 그전까지 방문자는 푸시와 환영 알림을 받지 못하며, OneSignal.User.PushSubscription.id가 설정되지 않을 수 있습니다. 로그인하지 않는 방문자에게 푸시를 보내는 사이트에서는 토글을 켜지 마세요.
웹에서의 호출 순서: 푸시 권한을 요청하기 전, 그리고 addEmail 또는 addSms를 호출하기 전에 login(externalId, jwt)를 호출하세요.
이메일 및 SMS:addEmail과 addSms에는 subscriptions 클레임에 해당 주소가 포함된 JWT가 필요합니다. 구독 추가를 참조하세요.
REST API: User 및 Subscription 엔드포인트에는 Authorization: Bearer YOUR_ONESIGNAL_JWT가 필요합니다. REST API를 참조하세요.
구독 추가 \
로그인 JWT의 subscriptions에 이미 이메일이나 전화번호가 포함되어 있다면 login이 해당 구독을 사용자와 연결합니다. 두 번째 호출은 필요하지 않습니다.Android 5.11.0 이상에서 login(external_id, profile)은 프로필의 이메일과 전화번호를 로그인 요청에 담아 보냅니다. 각 주소를 로그인 JWT의 subscriptions 클레임에 포함하세요.주소가 아직 JWT에 없다면 이를 포함한 새 토큰을 발급하고 updateUserJwt를 호출한 다음 addEmail 또는 addSms를 호출하세요. 모든 플랫폼에서 이렇게 하세요. Token Identity Verification이 켜진 후에는 addEmail / addSms만으로는 충분하지 않습니다.fetchOneSignalJwtWithEmail과 fetchOneSignalJwtWithSms는 subscriptions 클레임이 포함된 JWT를 발급하는 자체 백엔드 호출을 위한 자리 표시자입니다.
신원 확인 JWT는 App API key가 아닙니다. 다른 엔드포인트(예: Create message)는 여전히 Authorization: Key YOUR_APP_API_KEY를 사용합니다. Keys & IDs를 참조하세요.Token Identity Verification이 활성화되면 아래 User 및 Subscription 엔드포인트는 대신 ID JWT로 인증합니다.
Authorization: Bearer YOUR_ONESIGNAL_JWT
이 JWT는 SDK login과 같은 방식으로 발급하세요. 토큰의 identity.external_id는 요청이 작업하는 사용자와 일치해야 합니다.
curl -X GET 'https://api.onesignal.com/apps/YOUR_APP_ID/users/by/external_id/YOUR_EXTERNAL_ID' \ -H 'Authorization: Bearer YOUR_ONESIGNAL_JWT'
문제 해결 \
증상
가능한 원인
해결 방법
login(external_id, profile)이 BACKEND_ERROR 및 HTTP 상태 401로 실패
OneSignal이 JWT를 거부함
JWT 무효화 리스너에서 새 JWT를 가져와 updateUserJwt에 전달하세요. SDK가 로그인을 다시 시도합니다.
토글을 활성화한 후 login이 아무 작업도 하지 않는 것처럼 보임
JWT가 없거나 만료되었거나 ES256 이외의 알고리즘으로 서명됨
exp가 미래 시점인 유효한 ES256 JWT를 전달하세요.
보호된 REST API 호출이 401 Unauthorized를 반환
Authorization: Bearer JWT가 없거나 유효하지 않음, 또는 identity.external_id가 대상 사용자와 일치하지 않음
identity.external_id가 요청 경로의 사용자와 일치하는 현재 JWT를 보내세요.
토큰이 유효해 보이는데도 exp가 거부됨
exp가 초가 아닌 밀리초로 설정됨
exp를 초 단위 Unix 타임스탬프로 설정하세요.
토글을 활성화한 후 새로 설치한 기기에 푸시 구독이 없음
사용자가 로그인하지 않음. 토글이 켜져 있는 동안에는 익명 사용자가 생성되지 않음.
사용자가 인증되는 즉시 유효한 JWT로 login을 호출하세요.
토글을 활성화한 후 React Native, Flutter 또는 기타 크로스 플랫폼 사용자가 업데이트되지 않음
해당 SDK는 아직 JWT를 보낼 수 없음
Token Identity Verification을 끄세요. 모든 클라이언트가 지원되는 SDK를 사용할 때만 다시 켜세요.
Android에서 JWT 무효화 리스너가 호출되지 않음
이벤트가 발생한 후에 리스너가 추가됨
login을 호출하기 전에 Application.onCreate에서 리스너를 추가하세요.
iOS에서 JWT 무효화 리스너가 더 이상 호출되지 않음
SDK가 리스너를 약한 참조로 유지하며 리스너가 해제됨
앱 수명 동안 리스너에 대한 강한 참조를 유지하세요.
FAQ \
신원 확인은 필수인가요? \
아니요. 하지만 프로덕션 앱에는 강력히 권장됩니다. 신원 확인이 없으면 사용자의 External ID를 아는 모든 클라이언트가 해당 사용자를 사칭하여 구독이나 데이터를 수정할 수 있습니다.
“Identity Verification for email + external_id” 토글은 무엇인가요? \
Keys & IDs의 레거시 Identity Verification 토글
이 토글은 OneSignal SDK v3/v4용 별도의 레거시 설정입니다. 이 페이지에서 설명하는 JWT 기반 신원 확인이 아니며 SDK v5 앱을 보호하지 않습니다. SDK v5의 경우 Settings > Keys & IDs 아래 Identity Verification 섹션에서 Generate New Keys를 사용하세요. 키 생성을 참조하세요.
어떤 SDK가 신원 확인을 지원하나요? \
네이티브 Android SDK 5.9.0+, 네이티브 iOS SDK 5.8.0+, Web SDK 160900+입니다. 크로스 플랫폼 SDK(React Native, Expo, Flutter, Unity, Cordova, Ionic, Capacitor, .NET MAUI)는 아직 지원되지 않습니다. 지원되는 SDK를 참조하세요.
앱에서 크로스 플랫폼 SDK를 사용합니다. 신원 확인을 켤 수 있나요? \
아직은 안 됩니다. 대시보드에서 토글을 켤 수는 있지만 크로스 플랫폼 클라이언트는 JWT를 보낼 수 없어 로그인과 구독 업데이트가 실패합니다. 웹 래퍼는 login에 JWT를 전달할 수 있지만 만료 시 JWT를 갱신할 수는 없습니다. 지금 키를 생성하고 서버에서 JWT 서명을 구축한 다음, SDK가 지원되면 토글을 켜세요.
Web SDK는 JWT를 어디에 저장하나요? \
사이트의 브라우저 localStorage에 External ID를 키로 하여 저장합니다. 따라서 토큰은 페이지를 새로 고쳐도 유지되며 여러 탭에서 공유됩니다. 사이트에서 실행되는 모든 스크립트가 localStorage를 읽을 수 있으므로 exp를 짧게 유지하고, 사용자에게 보여 주지 않을 정보는 JWT에 넣지 마세요.
JWT는 어떤 알고리즘을 사용하나요? \
ES256(P-256 및 SHA-256을 사용하는 ECDSA)입니다. 다른 알고리즘은 거부됩니다.
세션 중에 JWT가 만료되면 어떻게 되나요? \
SDK가 JWT 무효화 이벤트를 발생시킵니다. addUserJwtInvalidatedListener를 구현하여(앱에 JWT 추가 참조) 새 토큰을 가져와 updateUserJwt에 전달하세요. 웹에서는 OneSignal.User.addEventListener로 userJwtInvalidated 이벤트를 수신하세요.
REST API에 신원 확인이 필요한가요? \
Token Identity Verification을 활성화한 후에만 필요합니다. 그러면 User 및 Subscription 엔드포인트에 Authorization: Bearer YOUR_ONESIGNAL_JWT가 필요합니다. 이러한 호출에는 App API key가 허용되지 않습니다. Create message 및 기타 사용자 외 엔드포인트는 여전히 Authorization: Key YOUR_APP_API_KEY를 사용합니다.
로그아웃하면 푸시 구독은 어떻게 되나요? \
신원 확인이 활성화된 경우 logout()은 푸시 구독을 비활성화합니다. 구독은 해당 사용자와 계속 연결된 상태로 유지됩니다. JWT로 login을 호출하면 이전 구독 상태가 복원됩니다. optIn()을 다시 호출할 필요가 없습니다.Android(Kotlin)에서 logoutSuspend()는 logout()의 논블로킹 버전입니다.
관련 페이지 \
사용자
External ID, 익명 사용자와 식별된 사용자, login/logout.
Keys & IDs
App ID, App API key 및 신원 확인 키의 위치.
모바일 SDK 레퍼런스
login, logout, addEmail, addSms 및 구독 메서드.
Web SDK 레퍼런스
login, updateUserJwt, userJwtInvalidated 이벤트 및 기타 Web SDK 메서드.
REST API 개요
JWT로 보호되지 않는 엔드포인트의 기본 App API key 인증.
이 페이지가 도움이 되었나요?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"OneSignal Documentation","description":"OneSignal is a platform for sending push notifications, emails, in-app messages, and SMS campaigns via a single API, Journey Builder, and a dashboard.","colors":{"primary":"#3A3DB3","light":"#E54B4D","dark":"#3A3DB3"},"logo":{"light":"https://mintcdn.com/onesignal/yJcueeDCO7UpHnnY/logo/OneSignal-Logo.svg?fit=max\u0026auto=format\u0026n=yJcueeDCO7UpHnnY\u0026q=85\u0026s=1fcfb6fef6d820fd9d99c74850711107","dark":"https://mintcdn.com/onesignal/s4WC_KzLxf8ornqq/logo/OneSignal-Logo-White.svg?fit=max\u0026auto=format\u0026n=s4WC_KzLxf8ornqq\u0026q=85\u0026s=2573a53b5aea961e18c82b3af8f31925"},"favicon":"https://mintcdn.com/onesignal/SGduBFHpiRdg5l6h/favicon.ico?fit=max\u0026auto=format\u0026n=SGduBFHpiRdg5l6h\u0026q=85\u0026s=c0a99fadc0553c658a83741c5611cef4","api":{"examples":{"languages":["curl","typescript","python","php","go","ruby","java","csharp","rust"],"autogenerate":true}},"navbar":{"links":[{"href":"mailto:support@onesignal.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.onesignal.com"}},"footer":{"socials":{"github":"https://github.com/OneSignal","linkedin":"https://linkedin.com/company/onesignal","youtube":"https://www.youtube.com/@onesignalofficial/playlists"}},"seo":{"metatags":{"apple-mobile-web-app-title":"OneSignal Docs"}},"fonts":{"family":"Nunito Sans"},"styling":{"eyebrows":"breadcrumbs","latex":true},"integrations":{"ga4":{"measurementId":"G-2DGWL0VYP5"},"posthog":{"apiKey":"phc_vZpvE0f5eyzcOt30FHer34yddVmNdo9kmlMVRBzLMtn","apiHost":"https://eu.i.posthog.com","sessionRecording":true}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"navigation":{"languages":[{"language":"en","href":"docs/en/home"},{"language":"cn","href":"docs/cn/home"},{"language":"ko","href":"docs/ko/home"},{"language":"ja","href":"docs/ja/home"},{"language":"tr","href":"docs/tr/home"},{"language":"pt-BR","href":"docs/pt-BR/home"},{"language":"es","href":"docs/es/home"},{"language":"fr","href":"docs/fr/home"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"onesignal","hasAudioNarration":false,"actualSubdomain":"onesignal","customDomains":["documentation.onesignal.com"],"gitSource":{"type":"github","owner":"onesignal","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0df8d03e8c12c562c00446","clientVersion":"0.0.4410","searchFilterCounts":[{"language":"en","tag":"User Guides","count":202},{"language":"es","tag":"Guías del Usuario","count":187},{"language":"fr","tag":"Guides utilisateur","count":187},{"language":"ja","tag":"ユーザーガイド","count":187},{"language":"ko","tag":"사용자 가이드","count":187},{"language":"pt-BR","tag":"Guia do Usuário","count":187},{"language":"tr","tag":"Kullanıcı Kılavuzları","count":187},{"language":"cn","tag":"用户指南","count":185},{"language":"en","tag":"Message channels","count":90},{"language":"es","tag":"Canales de mensajería","count":87},{"language":"fr","tag":"Canaux de messagerie","count":87},{"language":"ja","tag":"メッセージングチャネル","count":87},{"language":"ko","tag":"메시지 채널","count":87},{"language":"pt-BR","tag":"Canais de mensagem","count":87},{"language":"tr","tag":"Mesaj kanalları","count":87},{"language":"cn","tag":"消息渠道","count":86},{"language":"default","tag":"API Reference","count":67},{"language":"default","tag":"API reference","count":64},{"language":"en","tag":"Tutorials","count":59},{"language":"cn","tag":"开发者指南","count":51},{"language":"en","tag":"Analytics \u0026 Integrations","count":51},{"language":"en","tag":"Developer Guides","count":50},{"language":"es","tag":"Analítica \u0026 Integraciones","count":50},{"language":"es","tag":"Guías del desarrollador","count":50},{"language":"fr","tag":"Analyses et intégrations","count":50},{"language":"fr","tag":"Guides développeur","count":50},{"language":"ja","tag":"分析 \u0026 統合","count":50},{"language":"ja","tag":"開発者ガイド","count":50},{"language":"ko","tag":"분석 \u0026 통합","count":50},{"language":"ko","tag":"개발자 가이드","count":50},{"language":"pt-BR","tag":"Análises \u0026 Integrações","count":50},{"language":"pt-BR","tag":"Guia de desenvolvedor","count":50},{"language":"tr","tag":"Analitik ve Entegrasyonlar","count":50},{"language":"tr","tag":"Geliştirici Kılavuzları","count":50},{"language":"cn","tag":"分析和集成","count":49},{"language":"cn","tag":"教程","count":48},{"language":"es","tag":"Tutoriales","count":48},{"language":"fr","tag":"Tutoriels","count":48},{"language":"ja","tag":"チュートリアル","count":48},{"language":"ko","tag":"튜토리얼","count":48},{"language":"pt-BR","tag":"Tutoriais","count":48},{"language":"tr","tag":"Eğitimler","count":48},{"language":"en","tag":"Integrations","count":36},{"language":"es","tag":"Integraciones","count":36},{"language":"fr","tag":"Intégrations","count":36},{"language":"ja","tag":"統合","count":36},{"language":"ko","tag":"통합","count":36},{"language":"pt-BR","tag":"Integrações","count":36},{"language":"tr","tag":"Entegrasyonlar","count":36},{"language":"cn","tag":"集成","count":35},{"language":"cn","tag":"推送通知","count":30},{"language":"en","tag":"Push","count":30},{"language":"es","tag":"Push notificaciones","count":30},{"language":"fr","tag":"Push","count":30},{"language":"ja","tag":"プッシュ通知","count":30},{"language":"ko","tag":"푸시","count":30},{"language":"pt-BR","tag":"Push notificações","count":30},{"language":"tr","tag":"Anlık bildirimler","count":30},{"language":"cn","tag":"移动SDK","count":26},{"language":"en","tag":"Mobile SDKs","count":26},{"language":"es","tag":"SDKs móviles","count":26},{"language":"fr","tag":"SDK mobiles","count":26},{"language":"ja","tag":"モバイルSDK","count":26},{"language":"ko","tag":"모바일 SDKs","count":26},{"language":"pt-BR","tag":"SDKs móveis","count":26},{"language":"tr","tag":"Mobil SDK'lar","count":26},{"language":"cn","tag":"数据仓库和数据库","count":22},{"language":"en","tag":"Warehouses and databases","count":22},{"language":"es","tag":"Almacenes de datos y bases de datos","count":22},{"language":"fr","tag":"Entrepôts de données et bases de données","count":22},{"language":"ja","tag":"データウェアハウスとデータベース","count":22},{"language":"ko","tag":"데이터 웨어하우스 및 데이터베이스","count":22},{"language":"pt-BR","tag":"Data warehouses e bancos de dados","count":22},{"language":"tr","tag":"Veri ambarları ve veritabanları","count":22},{"language":"cn","tag":"移动SDK设置","count":19},{"language":"en","tag":"Mobile SDK setup","count":19},{"language":"es","tag":"Configuración del SDK móvil","count":19},{"language":"fr","tag":"Configuration SDK mobile","count":19},{"language":"ja","tag":"モバイルSDKセットアップ","count":19},{"language":"ko","tag":"모바일 SDK 설정","count":19},{"language":"pt-BR","tag":"Configuração do SDK móvel","count":19},{"language":"tr","tag":"Mobil SDK kurulumu","count":19},{"language":"default","tag":"Messages","count":9},{"language":"default","tag":"Users","count":9},{"language":"default","tag":"Organization","count":9},{"language":"default","tag":"Journeys","count":8},{"language":"default","tag":"Deprecated","count":6},{"language":"default","tag":"Templates","count":6},{"language":"default","tag":"Subscriptions","count":6},{"language":"default","tag":"Segments","count":5}]},"assistantConfig":{"enableStarterQuestions":false,"deflection":{"enabled":true,"email":"support@onesignal.com","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"docs/ko/identity-verification","slug":"/docs/ko/identity-verification","pageMetadata":{"title":"신원 확인","description":"클라이언트가 다른 사용자의 External ID를 사칭하거나 소유하지 않은 이메일 및 SMS 구독을 가져가지 못하도록 로그인을 보호합니다. 네이티브 Android SDK 5.9.0+, iOS SDK 5.8.0+, Web SDK 160900+에서 정식 제공됩니다. 크로스 플랫폼 SDK는 아직 지원되지 않습니다.","keywords":["신원 확인","JWT","External ID","로그인 JWT","updateUserJwt","사용자 사칭","ES256","Token Identity Verification","Android SDK 5.9.0","iOS SDK 5.8.0","Web SDK 160900","userJwtInvalidated","OneSignalUserProfile","프로필로 로그인","JWT 401"],"href":"/docs/ko/identity-verification"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"클라이언트가 다른 사용자의 External ID를 사칭하거나 소유하지 않은 이메일 및 SMS 구독을 가져가지 못하도록 로그인을 보호합니다. 네이티브 Android SDK 5.9.0+, iOS SDK 5.8.0+, Web SDK 160900+에서 정식 제공됩니다. 크로스 플랫폼 SDK는 아직 지원되지 않습니다.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Card,CodeBlock,CodeGroup,Columns,Frame,Heading,OptimizedImage,Step,Steps,Tab,Table,Tabs,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Columns)_missingMdxReference(`Columns`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`서버에서 `,_jsx(_components.a,{href:`https://jwt.io/introduction`,children:`JWT`}),`를 생성하고 `,_jsx(_components.code,{children:`OneSignal.login`}),`에 전달하면 클라이언트가 다른 External ID를 사칭할 수 없습니다. 같은 토큰으로 이메일 및 SMS 구독 추가와 일부 User REST API 호출도 승인할 수 있습니다.`]}),`\n`,_jsx(_components.p,{children:`신원 확인은 네이티브 Android SDK, iOS SDK 및 Web SDK에서 정식 제공됩니다. 크로스 플랫폼 SDK도 곧 지원될 예정입니다.`}),`\n`,_jsx(Heading,{level:`2`,id:`supported-sdks`,children:`지원되는 SDK \\\\`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`SDK`}),_jsx(_components.th,{children:`신원 확인`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Android(네이티브)`}),_jsxs(_components.td,{children:[_jsx(_components.a,{href:`https://github.com/OneSignal/OneSignal-Android-SDK/releases`,children:`5.9.0+`}),`에서 지원`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`iOS(네이티브)`}),_jsxs(_components.td,{children:[_jsx(_components.a,{href:`https://github.com/OneSignal/OneSignal-iOS-SDK/releases`,children:`5.8.0+`}),`에서 지원`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Web`}),_jsxs(_components.td,{children:[_jsx(_components.a,{href:`https://github.com/OneSignal/OneSignal-Website-SDK/releases`,children:`160900+`}),`에서 지원`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`웹 프레임워크 래퍼(React, Vue, Angular)`}),_jsxs(_components.td,{children:[`곧 지원 예정. `,_jsx(_components.code,{children:`login(externalId, jwt)`}),`는 지금 사용할 수 있지만 `,_jsx(_components.code,{children:`updateUserJwt`}),`와 `,_jsx(_components.code,{children:`userJwtInvalidated`}),` 이벤트는 아직 래퍼에 없습니다.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`React Native 및 Expo, Flutter, Unity, Cordova 및 Ionic, Capacitor, .NET MAUI`}),_jsx(_components.td,{children:`아직 지원되지 않음`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`지원되지 않는 SDK는 `,_jsx(_components.code,{children:`login`}),`에 JWT를 전달할 방법이 없습니다. 이러한 SDK에 대한 지원은 곧 제공될 예정입니다.`]}),`\n`,_jsxs(_components.p,{children:[`OneSignal CDN(`,_jsx(_components.code,{children:`/sdks/web/v16/`}),`)에서 Web SDK를 로드하는 사이트는 160900 이상 버전을 자동으로 받습니다.`]}),`\n`,_jsx(_components.p,{children:`신원 확인을 활성화하면 다음을 보호할 수 있습니다.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`사용자 로그인`}),`\n`,_jsx(_components.li,{children:`이메일 구독 추가`}),`\n`,_jsx(_components.li,{children:`SMS 구독 추가`}),`\n`,_jsx(_components.li,{children:`사용자 ID 및 별칭 수정`}),`\n`]}),`\n`,_jsxs(Warning,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`앱이 JWT를 보낼 수 없는 SDK를 사용하더라도 대시보드에서는 모든 앱에 대해 Token Identity Verification을 켤 수 있습니다.`}),` 이 토글은 모든 플랫폼에 걸쳐 앱 전체에 적용됩니다.`]}),_jsxs(_components.p,{children:[`앱의 클라이언트 중 하나라도 크로스 플랫폼 SDK를 사용한다면 `,_jsx(_components.strong,{children:`토글을 켜지 마세요`}),`. 토글이 켜지면 OneSignal은 해당 클라이언트에서 사용자와 구독을 생성하거나 업데이트하는 요청을 거부합니다. `,_jsx(_components.code,{children:`login`}),`, `,_jsx(_components.code,{children:`addEmail`}),`, `,_jsx(_components.code,{children:`addSms`}),`가 실패하며, 해당 클라이언트의 새 기기는 푸시 구독을 등록할 수 없습니다.`]}),_jsx(_components.p,{children:`그래도 지금 키를 생성하고 서버에서 JWT 서명을 구축할 수 있습니다. 검증을 강제하는 것은 토글뿐입니다.`})]}),`\n`,_jsx(Heading,{level:`2`,id:`prerequisites`,children:`사전 요구 사항 \\\\`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`푸시 플랫폼이 구성된 기존 OneSignal 앱.`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`login`}),`을 호출하는 모든 클라이언트가 `,_jsx(_components.a,{href:`#supported-sdks`,children:`지원되는 SDK`}),`를 사용: 네이티브 Android SDK 5.9.0+, 네이티브 iOS SDK 5.8.0+ 또는 Web SDK 160900+.`]}),`\n`,_jsx(_components.li,{children:`사용자를 인증하고 JWT에 서명할 수 있는 백엔드.`}),`\n`,_jsxs(_components.li,{children:[`OneSignal 대시보드의 `,_jsx(_components.strong,{children:`Settings > Keys \u0026 IDs`}),` 접근 권한. `,_jsx(_components.strong,{children:`Identity Verification`}),` 섹션은 모든 앱에서 사용할 수 있습니다. 지원팀에 문의할 필요가 없습니다.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`generate-keys`,children:`키 생성 \\\\`}),`\n`,_jsxs(_components.p,{children:[`다음 단계를 순서대로 완료하세요. 키를 생성하고, JWT를 만든 다음, 앱에 추가합니다. 백엔드에서 JWT를 발급할 수 있고 앱에서 이를 `,_jsx(_components.code,{children:`login`}),`에 전달할 수 있을 때까지 Token Identity Verification 토글을 켜지 마세요.`]}),`\n`,_jsxs(_components.p,{children:[`OneSignal 계정에 로그인하고 `,_jsx(_components.strong,{children:`Settings > Keys \u0026 IDs > Identity Verification`}),`으로 이동합니다.`]}),`\n`,_jsx(Frame,{caption:`신원 확인 구성`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/onesignal/q_BlLe_fAL4tDvWs/images/docs/d6f1009-keys_and_ids.png?fit=max\u0026auto=format\u0026n=q_BlLe_fAL4tDvWs\u0026q=85\u0026s=c0be9c91a0dd0449b0120badf8f94b43`,alt:`Identity Verification 섹션이 표시된 설정 페이지`,\"data-og-width\":`2401`,width:`2401`,\"data-og-height\":`734`,height:`734`,\"data-path\":`images/docs/d6f1009-keys_and_ids.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/onesignal/q_BlLe_fAL4tDvWs/images/docs/d6f1009-keys_and_ids.png?w=280\u0026fit=max\u0026auto=format\u0026n=q_BlLe_fAL4tDvWs\u0026q=85\u0026s=2ca195dcb87843352cc0d544bf8637b1 280w, https://mintcdn.com/onesignal/q_BlLe_fAL4tDvWs/images/docs/d6f1009-keys_and_ids.png?w=560\u0026fit=max\u0026auto=format\u0026n=q_BlLe_fAL4tDvWs\u0026q=85\u0026s=9f5979c55f941ee93ac5607060f0e53a 560w, https://mintcdn.com/onesignal/q_BlLe_fAL4tDvWs/images/docs/d6f1009-keys_and_ids.png?w=840\u0026fit=max\u0026auto=format\u0026n=q_BlLe_fAL4tDvWs\u0026q=85\u0026s=5e2afdfd94ef1c8f14fb1b439a911915 840w, https://mintcdn.com/onesignal/q_BlLe_fAL4tDvWs/images/docs/d6f1009-keys_and_ids.png?w=1100\u0026fit=max\u0026auto=format\u0026n=q_BlLe_fAL4tDvWs\u0026q=85\u0026s=b194bbcf7b2beb774be103246d41ad3d 1100w, https://mintcdn.com/onesignal/q_BlLe_fAL4tDvWs/images/docs/d6f1009-keys_and_ids.png?w=1650\u0026fit=max\u0026auto=format\u0026n=q_BlLe_fAL4tDvWs\u0026q=85\u0026s=b6ff0ee4629b69e7c1360cc609bcb53a 1650w, https://mintcdn.com/onesignal/q_BlLe_fAL4tDvWs/images/docs/d6f1009-keys_and_ids.png?w=2500\u0026fit=max\u0026auto=format\u0026n=q_BlLe_fAL4tDvWs\u0026q=85\u0026s=da4f61ae97603300ccb0283854f8e553 2500w`})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Generate New Keys`}),`를 클릭하여 새 키 쌍을 만듭니다.`]}),`\n`,_jsx(Frame,{caption:`새 키 쌍 만들기`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/onesignal/56ctKxZSV4m5VEkn/images/docs/b24c1fd-Identity_Verification.png?fit=max\u0026auto=format\u0026n=56ctKxZSV4m5VEkn\u0026q=85\u0026s=73e56aa60fdef2dc8152bf929ebc1d52`,alt:`Identity Verification 섹션의 Generate New Keys 버튼`,\"data-og-width\":`2350`,width:`2350`,\"data-og-height\":`686`,height:`686`,\"data-path\":`images/docs/b24c1fd-Identity_Verification.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/onesignal/56ctKxZSV4m5VEkn/images/docs/b24c1fd-Identity_Verification.png?w=280\u0026fit=max\u0026auto=format\u0026n=56ctKxZSV4m5VEkn\u0026q=85\u0026s=ed67c9b1f27985e8732948d2a32c00df 280w, https://mintcdn.com/onesignal/56ctKxZSV4m5VEkn/images/docs/b24c1fd-Identity_Verification.png?w=560\u0026fit=max\u0026auto=format\u0026n=56ctKxZSV4m5VEkn\u0026q=85\u0026s=6ebe69ac8a3ad8fdba9a1f614e29e184 560w, https://mintcdn.com/onesignal/56ctKxZSV4m5VEkn/images/docs/b24c1fd-Identity_Verification.png?w=840\u0026fit=max\u0026auto=format\u0026n=56ctKxZSV4m5VEkn\u0026q=85\u0026s=ff80c8aa6103603a5373ca915c020d27 840w, https://mintcdn.com/onesignal/56ctKxZSV4m5VEkn/images/docs/b24c1fd-Identity_Verification.png?w=1100\u0026fit=max\u0026auto=format\u0026n=56ctKxZSV4m5VEkn\u0026q=85\u0026s=909c5a15fddbb8d15775570f693cb4f5 1100w, https://mintcdn.com/onesignal/56ctKxZSV4m5VEkn/images/docs/b24c1fd-Identity_Verification.png?w=1650\u0026fit=max\u0026auto=format\u0026n=56ctKxZSV4m5VEkn\u0026q=85\u0026s=c1f058eb0aced1cfc7bc4029e24bfac6 1650w, https://mintcdn.com/onesignal/56ctKxZSV4m5VEkn/images/docs/b24c1fd-Identity_Verification.png?w=2500\u0026fit=max\u0026auto=format\u0026n=56ctKxZSV4m5VEkn\u0026q=85\u0026s=538d61d8fb65bcd370ef998830436751 2500w`})}),`\n`,_jsxs(_components.p,{children:[`PEM 파일을 다운로드하거나 개인 키를 복사하여 안전하게 보관하세요. 이 개인 키는 `,_jsx(_components.a,{href:`/docs/ko/keys-and-ids#app-api-key`,children:`App API key`}),`가 아닙니다. 신원 확인 JWT에 서명하는 용도로만 사용하세요.`]}),`\n`,_jsx(Frame,{caption:`신원 확인 키 쌍`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/onesignal/56ctKxZSV4m5VEkn/images/docs/bc217af-id_keys.png?fit=max\u0026auto=format\u0026n=56ctKxZSV4m5VEkn\u0026q=85\u0026s=b8e99ccdb2f4aafd453063540148ca2e`,alt:`개인 키와 PEM 다운로드가 포함된 신원 확인 키 쌍`,\"data-og-width\":`1128`,width:`1128`,\"data-og-height\":`966`,height:`966`,\"data-path\":`images/docs/bc217af-id_keys.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/onesignal/56ctKxZSV4m5VEkn/images/docs/bc217af-id_keys.png?w=280\u0026fit=max\u0026auto=format\u0026n=56ctKxZSV4m5VEkn\u0026q=85\u0026s=6a9dfe175839461254005d9ca1674505 280w, https://mintcdn.com/onesignal/56ctKxZSV4m5VEkn/images/docs/bc217af-id_keys.png?w=560\u0026fit=max\u0026auto=format\u0026n=56ctKxZSV4m5VEkn\u0026q=85\u0026s=f20c98f5367511637b83a5c6654a4de7 560w, https://mintcdn.com/onesignal/56ctKxZSV4m5VEkn/images/docs/bc217af-id_keys.png?w=840\u0026fit=max\u0026auto=format\u0026n=56ctKxZSV4m5VEkn\u0026q=85\u0026s=5aab2b4078c2af481d415d1450989a6f 840w, https://mintcdn.com/onesignal/56ctKxZSV4m5VEkn/images/docs/bc217af-id_keys.png?w=1100\u0026fit=max\u0026auto=format\u0026n=56ctKxZSV4m5VEkn\u0026q=85\u0026s=da4a94d77d6908e4f0a0941e1d5cae03 1100w, https://mintcdn.com/onesignal/56ctKxZSV4m5VEkn/images/docs/bc217af-id_keys.png?w=1650\u0026fit=max\u0026auto=format\u0026n=56ctKxZSV4m5VEkn\u0026q=85\u0026s=c49f1c335808b2ef25bbd1ad82972bfb 1650w, https://mintcdn.com/onesignal/56ctKxZSV4m5VEkn/images/docs/bc217af-id_keys.png?w=2500\u0026fit=max\u0026auto=format\u0026n=56ctKxZSV4m5VEkn\u0026q=85\u0026s=6f7bf0e28c158f734cadd74480702663 2500w`})}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`개인 키는 항상 키 관리 시스템과 같은 안전한 환경에 저장하세요. 클라이언트 측 코드, 공개 저장소 또는 로그에 개인 키를 절대 노출하지 마세요.`})}),`\n`,_jsx(_components.p,{children:`이제 서버에 저장된 개인 키와 OneSignal이 보유한 공개 키가 준비되었습니다.`}),`\n`,_jsx(Heading,{level:`2`,id:`create-the-jwt`,children:`JWT 생성 \\\\`}),`\n`,_jsxs(_components.p,{children:[`토큰에 서명하기 `,_jsx(_components.strong,{children:`전에`}),` 자체 서버에서 사용자를 인증하세요. 인증에 성공하면 아래 클레임으로 ES256 JWT에 서명하고 인증 응답에 담아 기기로 반환합니다. 앱에 백엔드가 없다면 사용자를 확인하고 이러한 토큰에 서명하는 일만 하는 작은 서버를 구축하세요. 기기에서 JWT에 서명하지 마세요.`]}),`\n`,_jsx(Heading,{level:`3`,id:`jwt-payload`,children:`JWT 페이로드 \\\\`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`클레임`}),_jsx(_components.th,{children:`필수`}),_jsx(_components.th,{children:`설명`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`iss`})}),_jsx(_components.td,{children:`예`}),_jsx(_components.td,{children:`OneSignal App ID.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`exp`})}),_jsx(_components.td,{children:`예`}),_jsxs(_components.td,{children:[`밀리초가 아닌 `,_jsx(_components.strong,{children:`초`}),` 단위의 Unix 타임스탬프로 지정한 만료 시간. 현재로부터 1시간 이내로 설정하세요. OneSignal은 만료된 토큰을 거부합니다.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`identity`})}),_jsx(_components.td,{children:`예`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`external_id`}),`를 포함하는 객체. 이 값은 `,_jsx(_components.code,{children:`OneSignal.login()`}),`에 전달하는 External ID와 일치해야 합니다.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`subscriptions`})}),_jsx(_components.td,{children:`아니요`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`type`}),`(`,_jsx(_components.code,{children:`Email`}),` 또는 `,_jsx(_components.code,{children:`SMS`}),`)과 `,_jsx(_components.code,{children:`token`}),`이 있는 객체 배열. 여기서 `,_jsx(_components.code,{children:`token`}),`은 JWT가 아니라 이메일 주소 또는 E.164 형식의 전화번호입니다. `,_jsx(_components.code,{children:`addEmail`}),` 또는 `,_jsx(_components.code,{children:`addSms`}),`를 호출하기 `,_jsx(_components.strong,{children:`전에`}),` 이 클레임을 포함하세요.`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`signing-the-jwt`,children:`JWT 서명 \\\\`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`ES256`}),` 알고리즘(P-256 및 SHA-256을 사용하는 ECDSA)으로 JWT에 서명하세요. 다른 알고리즘은 거부됩니다. 토큰을 직접 조립하지 말고 `,_jsx(_components.a,{href:`https://jwt.io/libraries`,children:`JWT 라이브러리`}),`를 사용하세요.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://www.npmjs.com/package/jsonwebtoken`,children:`jsonwebtoken`}),`을 사용한 예시입니다. 이전 단계에서 다운로드한 PEM 개인 키를 전달합니다.`]}),`\n`,_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`25`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`25`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` jwt`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"jsonwebtoken\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` APP_ID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`ONESIGNAL_APP_ID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` IDENTITY_VERIFICATION_SECRET`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`ONESIGNAL_IDENTITY_VERIFICATION_SECRET_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` signOneSignalJWT`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`externalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`subscriptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` payload`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` iss:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` APP_ID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` exp:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Math`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`floor`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Date`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`now`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 3600`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` identity:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` external_id:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` externalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` };`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subscriptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subscriptions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subscriptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` jwt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`sign`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`IDENTITY_VERIFICATION_SECRET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` algorithm:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ES256\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` onesignalJWT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` signOneSignalJWT`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_EXTERNAL_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`PEM 개인 키는 줄 바꿈을 그대로 유지한 채 저장하세요. 많은 환경 변수 시스템이 줄 바꿈을 제거하여 ES256 서명이 실패합니다. 리터럴 `,_jsx(_components.code,{children:`\\\\n`}),` 문자를 유지하거나, 키를 base64로 인코딩한 후 런타임에 디코딩하세요.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`verify-your-jwt`,children:`JWT 확인 \\\\`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`signOneSignalJWT()`}),`가 반환한 문자열을 로그로 남기거나 반환한 다음 디코딩하여 페이로드를 확인합니다. `,_jsx(_components.a,{href:`https://jwt.io`,children:`jwt.io`}),`는 브라우저에서 토큰을 디코딩하지만, 실제 사용자의 토큰은 비밀로 취급하고 타사 도구에 붙여 넣을 때는 테스트 토큰을 사용하세요. 디코딩된 페이로드는 다음과 같아야 합니다.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"iss\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-onesignal-app-id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"exp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1234567890`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"identity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-external-id\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`login`}),`을 호출하기 전에 다음을 모두 확인하세요.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`iss`}),`가 `,_jsx(_components.strong,{children:`Settings > Keys \u0026 IDs`}),`의 OneSignal App ID와 일치`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`identity.external_id`}),`가 `,_jsx(_components.code,{children:`OneSignal.login()`}),`에 전달할 값과 일치`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`exp`}),`가 미래 시점이며 초 단위로 표현됨`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`including-subscriptions`,children:`구독 포함 \\\\`}),`\n`,_jsxs(_components.p,{children:[`이미 이메일과 SMS 값이 있다면 로그인 시 JWT에 포함하세요. 나중에 받게 된다면 `,_jsx(_components.code,{children:`subscriptions`}),` 클레임을 포함한 새 JWT를 발급하고 `,_jsx(_components.code,{children:`addEmail`}),` 또는 `,_jsx(_components.code,{children:`addSms`}),`를 호출하기 전에 `,_jsx(_components.code,{children:`updateUserJwt`}),`에 전달하세요. `,_jsx(_components.a,{href:`#adding-subscriptions`,children:`구독 추가`}),`를 참조하세요.`]}),`\n`,_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`11`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` subscriptions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` token:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user@example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"SMS\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` token:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"+15551234567\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`];`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` onesignalJWT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` signOneSignalJWT`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_EXTERNAL_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subscriptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`전화번호는 `,_jsx(_components.a,{href:`https://www.twilio.com/docs/glossary/what-e164`,children:`E.164 형식`}),`을 사용해야 합니다.`]}),`\n`,_jsx(Heading,{level:`2`,id:`add-the-jwt-to-your-app`,children:`앱에 JWT 추가 \\\\`}),`\n`,_jsx(_components.p,{children:`앱 또는 웹사이트에서 다음 단계를 완료하세요.`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`login 메서드에 JWT 전달`,children:[_jsxs(_components.p,{children:[`External ID와 JWT로 `,_jsx(_components.code,{children:`login`}),`을 호출합니다. 대시보드에서 Token Identity Verification이 활성화되기 전까지 SDK는 JWT를 보내지 않으므로, 토글을 켜기 전에 이 앱 업데이트를 배포할 수 있습니다. 토글을 활성화한 후에는 유효한 JWT 없이 호출한 `,_jsx(_components.code,{children:`login`}),`은 실패합니다.`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Java`,numberOfLines:`4`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` externalId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_EXTERNAL_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` onesignalJWT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_JWT_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`OneSignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`login`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(externalId, onesignalJWT);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Kotlin`,numberOfLines:`4`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` externalId `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_EXTERNAL_ID\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` onesignalJWT `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_JWT_TOKEN\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`OneSignal.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`login`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(externalId, onesignalJWT)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Kotlin (suspend)`,numberOfLines:`4`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` externalId `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_EXTERNAL_ID\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` onesignalJWT `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_JWT_TOKEN\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`OneSignal.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`loginSuspend`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(externalId, onesignalJWT)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Swift`,numberOfLines:`4`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` externalId `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_EXTERNAL_ID\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` onesignalJWT `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_JWT_TOKEN\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`OneSignal.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`login`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`externalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: externalId, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: onesignalJWT)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Objective-C`,numberOfLines:`4`,language:`objective-c`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`objective-c`,children:_jsxs(_components.code,{language:`objective-c`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`NSString`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` *`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`externalId `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @\"YOUR_EXTERNAL_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`NSString`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` *`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`onesignalJWT `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @\"YOUR_JWT_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[OneSignal `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`login:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`externalId `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`withToken:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`onesignalJWT];`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`6`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`OneSignalDeferred`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`push`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`OneSignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` externalId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_EXTERNAL_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` onesignalJWT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_JWT_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` OneSignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`login`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`externalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`onesignalJWT`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})})]}),_jsx(_components.p,{children:`성공하면 OneSignal은 기기의 구독을 External ID와 연결하고 사용자는 식별된 사용자가 됩니다.`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Web:`}),` `,_jsx(_components.code,{children:`login`}),`이 반환하는 promise는 OneSignal이 로그인을 수락하면 resolve됩니다. OneSignal이 JWT를 거부하면 promise가 reject되고, SDK는 `,_jsx(_components.code,{children:`userJwtInvalidated`}),`를 발생시키며, `,_jsx(_components.code,{children:`updateUserJwt`}),`를 호출한 후 로그인을 다시 시도합니다. Token Identity Verification이 켜져 있을 때 JWT 없이 `,_jsx(_components.code,{children:`login`}),`을 호출하면, `,_jsx(_components.code,{children:`updateUserJwt`}),`로 JWT를 제공할 때까지 promise가 완료되지 않습니다.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Android 5.11.0 이상:`}),` 같은 요청에서 사용자의 이메일, 전화번호, 태그, 별칭을 설정하려면 `,_jsx(_components.a,{href:`/docs/ko/mobile-sdk-reference#login-external_id-profile`,children:_jsx(_components.code,{children:`login(external_id, profile)`})}),`의 세 번째 인수로 JWT를 전달하세요. 프로필의 이메일과 전화번호를 JWT의 `,_jsx(_components.code,{children:`subscriptions`}),` 클레임에 포함하세요. `,_jsx(_components.a,{href:`#adding-subscriptions`,children:`구독 추가`}),`를 참조하세요.`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Kotlin`,numberOfLines:`7`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// login(external_id, profile) is a suspend function. Call it from a coroutine.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` profile `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` OneSignalUserProfile.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`builder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setEmail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user@example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setSms`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+15551234567\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`build`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` loginResult `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` OneSignal.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`login`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(externalId, profile, onesignalJWT)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Java`,numberOfLines:`9`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`OneSignalUserProfile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` profile`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` OneSignalUserProfile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`builder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setEmail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user@example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setSms`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+15551234567\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`build`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Continue.with requires Android API level 24 or later. The callback may not run on the main thread.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`OneSignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`login`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(externalId, profile, onesignalJWT, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Continue`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`with`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(continueResult `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Handle the OneSignalResult\u003cLoginData> in continueResult.getData()`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}));`})}),`\n`]})})})]}),_jsxs(_components.p,{children:[`OneSignal이 JWT를 거부하면 `,_jsx(_components.code,{children:`loginResult`}),`는 `,_jsx(_components.code,{children:`BACKEND_ERROR`}),` 및 HTTP 상태 `,_jsx(_components.code,{children:`401`}),`로 실패하고, SDK는 다음 단계에서 설명하는 JWT 무효화 이벤트를 발생시킵니다. SDK는 로그인을 대기열에 유지하고 `,_jsx(_components.code,{children:`updateUserJwt`}),`를 호출한 후 다시 시도합니다.`]})]}),_jsxs(Step,{title:`JWT 수명 주기 이벤트 처리`,children:[_jsxs(_components.p,{children:[`OneSignal이 JWT를 거부하면(예: 만료된 경우) SDK는 JWT 무효화 이벤트를 발생시킵니다. 백엔드에서 새 토큰을 가져와 `,_jsx(_components.code,{children:`updateUserJwt`}),`에 전달하세요. 토큰이 필요한 요청은 토큰을 제공할 때까지 대기합니다. 원래 로그인 토큰에 이메일이나 SMS가 포함되지 않았다면 같은 엔드포인트를 사용해 이를 포함하는 토큰을 발급할 수 있습니다.`]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`login`}),`을 호출하기 전, 앱 시작 시 리스너를 추가하세요.`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Android:`}),` `,_jsx(_components.code,{children:`Application.onCreate`}),`에서 추가하세요. 리스너는 추가된 후에 발생한 이벤트만 수신하며 백그라운드 스레드에서 호출됩니다.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`iOS:`}),` SDK는 리스너를 약한 참조로 유지하므로 강한 참조를 유지하세요. 리스너는 메인 스레드에서 호출되므로 토큰을 비동기로 가져오세요. 리스너를 추가하기 전에 이벤트가 발생했다면 SDK는 리스너를 추가할 때 해당 이벤트를 전달합니다.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Web:`}),` `,_jsx(_components.code,{children:`login`}),`을 호출하기 전에 `,_jsx(_components.code,{children:`OneSignalDeferred.push`}),` 안에서 `,_jsx(_components.code,{children:`OneSignal.User.addEventListener(\"userJwtInvalidated\", listener)`}),`로 추가하세요. 리스너는 추가된 후에 발생한 이벤트만 수신합니다. SDK는 각 리스너를 비동기로 호출하며, 예외를 발생시킨 리스너가 있어도 다른 리스너는 중단되지 않습니다.`]}),`\n`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Java`,numberOfLines:`6`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Called on a background thread, so a blocking network call is OK here.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`OneSignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addUserJwtInvalidatedListener`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(event `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` externalId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` event`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getExternalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` onesignalJWT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetchOneSignalJwt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(externalId);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` OneSignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`updateUserJwt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(externalId, onesignalJWT);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Kotlin`,numberOfLines:`6`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Called on a background thread, so a blocking network call is OK here.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`OneSignal.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addUserJwtInvalidatedListener`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { event `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`->`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` externalId `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` event.externalId`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` onesignalJWT `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetchOneSignalJwt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(externalId)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` OneSignal.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`updateUserJwt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(externalId, onesignalJWT)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Kotlin (suspend)`,numberOfLines:`7`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`OneSignal.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addUserJwtInvalidatedListener`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { event `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`->`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` externalId `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` event.externalId`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` appScope.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`launch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` onesignalJWT `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetchOneSignalJwt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(externalId)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` OneSignal.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`updateUserJwtSuspend`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(externalId, onesignalJWT)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Swift`,numberOfLines:`18`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` OneSignalFramework`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// The app delegate lives for the whole app session, so the SDK's weak reference stays valid.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` AppDelegate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`UIResponder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`UIApplicationDelegate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`OSUserJwtInvalidatedListener `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` application`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`_`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` application`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: UIApplication, `}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`didFinishLaunchingWithOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` launchOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [UIApplication.LaunchOptionsKey: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Any`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Bool`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` OneSignal.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`addUserJwtInvalidatedListener`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Called on the main thread. Fetch the token without blocking it.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onUserJwtInvalidated`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`event`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: OSUserJwtInvalidatedEvent) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` externalId `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` event.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`externalId`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` Task`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` onesignalJWT `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` fetchOneSignalJwt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`externalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: externalId)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` OneSignal.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`updateUserJwt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`externalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: externalId, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: onesignalJWT)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Objective-C`,numberOfLines:`21`,language:`objective-c`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`objective-c`,children:_jsxs(_components.code,{language:`objective-c`,numberOfLines:`21`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`@import OneSignalFramework;`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`@interface`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` MyListener`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` : `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`NSObject`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \u003cOSUserJwtInvalidatedListener>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`@end`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`@implementation`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` MyListener`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Called on the main thread. Fetch the token without blocking it.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`- (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`void`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`onUserJwtInvalidatedWithEvent:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(OSUserJwtInvalidatedEvent `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`*`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` _Nonnull`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`event`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` NSString`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` *`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`externalId `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` event`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`externalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`self`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` fetchOneSignalJwt:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`externalId `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`completion:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`^`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`NSString`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` *`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`onesignalJWT) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [OneSignal `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`updateUserJwt:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`externalId `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`withToken:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`onesignalJWT];`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }];`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`@end`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// The SDK holds the listener weakly. Store it in a property that lives as long as your app.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.jwtListener `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [MyListener `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`];`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[OneSignal `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`addUserJwtInvalidatedListener:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.jwtListener];`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// To stop listening:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[OneSignal `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`removeUserJwtInvalidatedListener:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.jwtListener];`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`12`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`OneSignalDeferred`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`push`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`OneSignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onUserJwtInvalidated`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`event`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` externalId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` event`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`externalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` onesignalJWT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetchOneSignalJwt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`externalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` OneSignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`updateUserJwt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`externalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`onesignalJWT`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` OneSignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`User`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addEventListener`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"userJwtInvalidated\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`onUserJwtInvalidated`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // To stop listening:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // OneSignal.User.removeEventListener(\"userJwtInvalidated\", onUserJwtInvalidated);`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})})]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`fetchOneSignalJwt`}),`를 백엔드 호출로 바꾸세요. 기기에서 JWT에 서명하지 마세요.`]}),_jsx(_components.p,{children:`이 리스너를 설정하면 만료된 토큰이 자동으로 교체되어 사용자가 다시 로그인하지 않아도 세션이 계속됩니다.`})]}),_jsxs(Step,{title:`대시보드에서 Token Identity Verification 활성화`,children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Settings > Keys \u0026 IDs`}),`에서 `,_jsx(_components.strong,{children:`Token Identity Verification`}),`을 켭니다.`]}),_jsx(Frame,{caption:`Token Identity Verification 활성화`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/onesignal/YOTSrtBSoqdrJ37A/images/docs/4887367-identity_verification_enabled.png?fit=max\u0026auto=format\u0026n=YOTSrtBSoqdrJ37A\u0026q=85\u0026s=26d06ca0a008e841d5206093bfbf2a8c`,alt:`대시보드 설정에서 활성화된 Token Identity Verification 토글`,\"data-og-width\":`2350`,width:`2350`,\"data-og-height\":`686`,height:`686`,\"data-path\":`images/docs/4887367-identity_verification_enabled.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/onesignal/YOTSrtBSoqdrJ37A/images/docs/4887367-identity_verification_enabled.png?w=280\u0026fit=max\u0026auto=format\u0026n=YOTSrtBSoqdrJ37A\u0026q=85\u0026s=c4de06719a8828f43acaaaaef12a9dfc 280w, https://mintcdn.com/onesignal/YOTSrtBSoqdrJ37A/images/docs/4887367-identity_verification_enabled.png?w=560\u0026fit=max\u0026auto=format\u0026n=YOTSrtBSoqdrJ37A\u0026q=85\u0026s=8cd20820cfee031334a0e64eead8ce04 560w, https://mintcdn.com/onesignal/YOTSrtBSoqdrJ37A/images/docs/4887367-identity_verification_enabled.png?w=840\u0026fit=max\u0026auto=format\u0026n=YOTSrtBSoqdrJ37A\u0026q=85\u0026s=3dca5b6c52c8ad05e7288b6a6e8cb84f 840w, https://mintcdn.com/onesignal/YOTSrtBSoqdrJ37A/images/docs/4887367-identity_verification_enabled.png?w=1100\u0026fit=max\u0026auto=format\u0026n=YOTSrtBSoqdrJ37A\u0026q=85\u0026s=c7f729ce8add84a2d9fee687db901c5d 1100w, https://mintcdn.com/onesignal/YOTSrtBSoqdrJ37A/images/docs/4887367-identity_verification_enabled.png?w=1650\u0026fit=max\u0026auto=format\u0026n=YOTSrtBSoqdrJ37A\u0026q=85\u0026s=c44cddca2927f734599800fa14a272be 1650w, https://mintcdn.com/onesignal/YOTSrtBSoqdrJ37A/images/docs/4887367-identity_verification_enabled.png?w=2500\u0026fit=max\u0026auto=format\u0026n=YOTSrtBSoqdrJ37A\u0026q=85\u0026s=ee3c97bc4d74bd416e8b5ce313373342 2500w`})}),_jsx(_components.p,{children:`켜기 전에 다음을 확인하세요.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`이 앱의 어떤 클라이언트도 크로스 플랫폼 SDK를 사용하지 않습니다. `,_jsx(_components.a,{href:`#supported-sdks`,children:`지원되는 SDK`}),`를 참조하세요.`]}),`\n`,_jsxs(_components.li,{children:[`대부분의 사용자가 `,_jsx(_components.code,{children:`login`}),`에 JWT를 전달하는 앱 버전을 사용하고 있습니다. 기기에 여전히 설치된 이전 앱 버전은 JWT를 보낼 수 없으므로 해당 요청도 실패합니다.`]}),`\n`,_jsxs(_components.li,{children:[`서버가 호출하는 `,_jsx(_components.a,{href:`#rest-api`,children:`User REST API`}),`에 JWT를 보냅니다.`]}),`\n`]}),_jsxs(_components.p,{children:[`이후 OneSignal은 유효한 JWT가 포함되지 않은 모든 `,_jsx(_components.code,{children:`login`}),` 또는 보호된 REST API 호출을 거부합니다. `,_jsx(_components.a,{href:`#what-changes-when-the-toggle-is-on`,children:`토글을 켜면 달라지는 점`}),`을 참조하세요.`]}),_jsx(_components.p,{children:`모바일 앱은 다음 실행 시 변경 사항을 적용합니다. 웹 페이지는 Web SDK 구성이 캐시되기 때문에 변경 사항이 적용되기까지 최대 1시간이 걸릴 수 있습니다.`})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`what-changes-when-the-toggle-is-on`,children:`토글을 켜면 달라지는 점 \\\\`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`로그인:`}),` `,_jsx(_components.code,{children:`login`}),`에는 `,_jsx(_components.code,{children:`identity.external_id`}),`가 External ID와 일치하는 유효한 JWT가 필요합니다.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`로그아웃된 기기:`}),` SDK는 OneSignal에 익명 사용자를 만들지 않습니다. 새로 설치한 경우 앱이 유효한 JWT로 `,_jsx(_components.code,{children:`login`}),`을 호출할 때까지 기기는 푸시 구독을 등록하지 않으므로, 그전에는 푸시 알림을 받을 수 없습니다. 로그인 전 사용자에게 푸시를 보내고 있다면 토글을 켜기 전에 이를 고려하세요.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`웹 방문자:`}),` 익명 방문자는 웹 푸시 구독을 가질 수 없습니다. 방문자가 로그인하기 전에 푸시를 허용하면 SDK는 구독을 브라우저에 보관했다가 유효한 JWT로 `,_jsx(_components.code,{children:`login`}),`이 실행될 때 OneSignal로 보냅니다. 그전까지 방문자는 푸시와 환영 알림을 받지 못하며, `,_jsx(_components.code,{children:`OneSignal.User.PushSubscription.id`}),`가 설정되지 않을 수 있습니다. 로그인하지 않는 방문자에게 푸시를 보내는 사이트에서는 토글을 켜지 마세요.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`웹에서의 호출 순서:`}),` 푸시 권한을 요청하기 전, 그리고 `,_jsx(_components.code,{children:`addEmail`}),` 또는 `,_jsx(_components.code,{children:`addSms`}),`를 호출하기 전에 `,_jsx(_components.code,{children:`login(externalId, jwt)`}),`를 호출하세요.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`로그아웃:`}),` `,_jsx(_components.code,{children:`logout()`}),`은 기기의 푸시 구독을 비활성화합니다. JWT로 `,_jsx(_components.code,{children:`login`}),`을 호출하면 복원됩니다. `,_jsx(_components.a,{href:`#what-happens-to-the-push-subscription-on-logout`,children:`FAQ`}),`를 참조하세요.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`이메일 및 SMS:`}),` `,_jsx(_components.code,{children:`addEmail`}),`과 `,_jsx(_components.code,{children:`addSms`}),`에는 `,_jsx(_components.code,{children:`subscriptions`}),` 클레임에 해당 주소가 포함된 JWT가 필요합니다. `,_jsx(_components.a,{href:`#adding-subscriptions`,children:`구독 추가`}),`를 참조하세요.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`REST API:`}),` User 및 Subscription 엔드포인트에는 `,_jsx(_components.code,{children:`Authorization: Bearer YOUR_ONESIGNAL_JWT`}),`가 필요합니다. `,_jsx(_components.a,{href:`#rest-api`,children:`REST API`}),`를 참조하세요.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`adding-subscriptions`,children:`구독 추가 \\\\`}),`\n`,_jsxs(_components.p,{children:[`로그인 JWT의 `,_jsx(_components.code,{children:`subscriptions`}),`에 이미 이메일이나 전화번호가 포함되어 있다면 `,_jsx(_components.code,{children:`login`}),`이 해당 구독을 사용자와 연결합니다. 두 번째 호출은 필요하지 않습니다.`]}),`\n`,_jsxs(_components.p,{children:[`Android 5.11.0 이상에서 `,_jsx(_components.code,{children:`login(external_id, profile)`}),`은 프로필의 이메일과 전화번호를 로그인 요청에 담아 보냅니다. 각 주소를 로그인 JWT의 `,_jsx(_components.code,{children:`subscriptions`}),` 클레임에 포함하세요.`]}),`\n`,_jsxs(_components.p,{children:[`주소가 아직 JWT에 없다면 이를 포함한 새 토큰을 발급하고 `,_jsx(_components.code,{children:`updateUserJwt`}),`를 호출한 다음 `,_jsx(_components.code,{children:`addEmail`}),` 또는 `,_jsx(_components.code,{children:`addSms`}),`를 호출하세요. 모든 플랫폼에서 이렇게 하세요. Token Identity Verification이 켜진 후에는 `,_jsx(_components.code,{children:`addEmail`}),` / `,_jsx(_components.code,{children:`addSms`}),`만으로는 충분하지 않습니다.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`fetchOneSignalJwtWithEmail`}),`과 `,_jsx(_components.code,{children:`fetchOneSignalJwtWithSms`}),`는 `,_jsx(_components.code,{children:`subscriptions`}),` 클레임이 포함된 JWT를 발급하는 자체 백엔드 호출을 위한 자리 표시자입니다.`]}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`이메일 추가`,id:`%EC%9D%B4%EB%A9%94%EC%9D%BC-%EC%B6%94%EA%B0%80`,children:_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Java`,numberOfLines:`3`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` onesignalJWT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetchOneSignalJwtWithEmail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(externalId, emailAddress);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`OneSignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`updateUserJwt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(externalId, onesignalJWT);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`OneSignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getUser`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addEmail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(emailAddress);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Kotlin`,numberOfLines:`3`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` onesignalJWT `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetchOneSignalJwtWithEmail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(externalId, emailAddress)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`OneSignal.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`updateUserJwt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(externalId, onesignalJWT)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`OneSignal.User.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addEmail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(emailAddress)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Swift`,numberOfLines:`3`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` onesignalJWT `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` fetchOneSignalJwtWithEmail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`externalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: externalId, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`email`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: emailAddress)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`OneSignal.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`updateUserJwt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`externalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: externalId, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: onesignalJWT)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`OneSignal.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`User`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`addEmail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(emailAddress)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Objective-C`,numberOfLines:`3`,language:`objective-c`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`objective-c`,children:_jsxs(_components.code,{language:`objective-c`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`NSString`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` *`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`onesignalJWT `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`self`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` fetchOneSignalJwtWithEmail:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`externalId `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`email:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`emailAddress];`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[OneSignal `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`updateUserJwt:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`externalId `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`withToken:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`onesignalJWT];`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[OneSignal.User `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`addEmail:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`emailAddress];`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`5`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`OneSignalDeferred`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`push`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`OneSignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` onesignalJWT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetchOneSignalJwtWithEmail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`externalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`emailAddress`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` OneSignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`updateUserJwt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`externalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`onesignalJWT`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` OneSignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`User`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addEmail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`emailAddress`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})})]})}),_jsx(Tab,{title:`전화번호 추가`,id:`%EC%A0%84%ED%99%94%EB%B2%88%ED%98%B8-%EC%B6%94%EA%B0%80`,children:_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Java`,numberOfLines:`3`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` onesignalJWT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetchOneSignalJwtWithSms`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(externalId, smsNumber);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`OneSignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`updateUserJwt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(externalId, onesignalJWT);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`OneSignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getUser`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addSms`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(smsNumber);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Kotlin`,numberOfLines:`3`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` onesignalJWT `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetchOneSignalJwtWithSms`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(externalId, smsNumber)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`OneSignal.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`updateUserJwt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(externalId, onesignalJWT)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`OneSignal.User.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addSms`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(smsNumber)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Swift`,numberOfLines:`3`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` onesignalJWT `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` fetchOneSignalJwtWithSms`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`externalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: externalId, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`sms`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: smsNumber)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`OneSignal.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`updateUserJwt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`externalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: externalId, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: onesignalJWT)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`OneSignal.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`User`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`addSms`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(smsNumber)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Objective-C`,numberOfLines:`3`,language:`objective-c`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`objective-c`,children:_jsxs(_components.code,{language:`objective-c`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`NSString`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` *`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`onesignalJWT `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`self`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` fetchOneSignalJwtWithSms:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`externalId `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`sms:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`smsNumber];`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[OneSignal `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`updateUserJwt:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`externalId `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`withToken:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`onesignalJWT];`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[OneSignal.User `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`addSms:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`smsNumber];`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`5`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`OneSignalDeferred`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`push`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`OneSignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` onesignalJWT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetchOneSignalJwtWithSms`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`externalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`smsNumber`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` OneSignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`updateUserJwt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`externalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`onesignalJWT`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` OneSignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`User`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addSms`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`smsNumber`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})})]})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`rest-api`,children:`REST API \\\\`}),`\n`,_jsxs(_components.p,{children:[`신원 확인 JWT는 App API key가 `,_jsx(_components.strong,{children:`아닙니다`}),`. 다른 엔드포인트(예: `,_jsx(_components.a,{href:`/reference/create-message`,children:`Create message`}),`)는 여전히 `,_jsx(_components.code,{children:`Authorization: Key YOUR_APP_API_KEY`}),`를 사용합니다. `,_jsx(_components.a,{href:`/docs/ko/keys-and-ids`,children:`Keys \u0026 IDs`}),`를 참조하세요.`]}),`\n`,_jsx(_components.p,{children:`Token Identity Verification이 활성화되면 아래 User 및 Subscription 엔드포인트는 대신 ID JWT로 인증합니다.`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Authorization: Bearer YOUR_ONESIGNAL_JWT`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`이 JWT는 SDK `,_jsx(_components.code,{children:`login`}),`과 같은 방식으로 발급하세요. 토큰의 `,_jsx(_components.code,{children:`identity.external_id`}),`는 요청이 작업하는 사용자와 일치해야 합니다.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/reference/create-user`,children:`Create user`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/reference/view-user`,children:`View user`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/reference/update-user`,children:`Update user`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/reference/delete-user`,children:`Delete user`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/reference/fetch-aliases`,children:`View user identity`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/reference/create-alias`,children:`Create alias`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/reference/delete-alias`,children:`Delete alias`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/reference/create-subscription`,children:`Create subscription`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/reference/update-subscription`,children:`Update subscription`})}),`\n`]}),`\n`,_jsx(_components.p,{children:`예시:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` GET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.onesignal.com/apps/YOUR_APP_ID/users/by/external_id/YOUR_EXTERNAL_ID'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer YOUR_ONESIGNAL_JWT'`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`문제 해결 \\\\`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`증상`}),_jsx(_components.th,{children:`가능한 원인`}),_jsx(_components.th,{children:`해결 방법`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`login(external_id, profile)`}),`이 `,_jsx(_components.code,{children:`BACKEND_ERROR`}),` 및 HTTP 상태 `,_jsx(_components.code,{children:`401`}),`로 실패`]}),_jsx(_components.td,{children:`OneSignal이 JWT를 거부함`}),_jsxs(_components.td,{children:[`JWT 무효화 리스너에서 새 JWT를 가져와 `,_jsx(_components.code,{children:`updateUserJwt`}),`에 전달하세요. SDK가 로그인을 다시 시도합니다.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`토글을 활성화한 후 `,_jsx(_components.code,{children:`login`}),`이 아무 작업도 하지 않는 것처럼 보임`]}),_jsx(_components.td,{children:`JWT가 없거나 만료되었거나 ES256 이외의 알고리즘으로 서명됨`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`exp`}),`가 미래 시점인 유효한 ES256 JWT를 전달하세요.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`보호된 REST API 호출이 `,_jsx(_components.code,{children:`401 Unauthorized`}),`를 반환`]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Authorization: Bearer`}),` JWT가 없거나 유효하지 않음, 또는 `,_jsx(_components.code,{children:`identity.external_id`}),`가 대상 사용자와 일치하지 않음`]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`identity.external_id`}),`가 요청 경로의 사용자와 일치하는 현재 JWT를 보내세요.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`토큰이 유효해 보이는데도 `,_jsx(_components.code,{children:`exp`}),`가 거부됨`]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`exp`}),`가 초가 아닌 밀리초로 설정됨`]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`exp`}),`를 초 단위 Unix 타임스탬프로 설정하세요.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`토글을 활성화한 후 새로 설치한 기기에 푸시 구독이 없음`}),_jsx(_components.td,{children:`사용자가 로그인하지 않음. 토글이 켜져 있는 동안에는 익명 사용자가 생성되지 않음.`}),_jsxs(_components.td,{children:[`사용자가 인증되는 즉시 유효한 JWT로 `,_jsx(_components.code,{children:`login`}),`을 호출하세요.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`토글을 활성화한 후 React Native, Flutter 또는 기타 크로스 플랫폼 사용자가 업데이트되지 않음`}),_jsx(_components.td,{children:`해당 SDK는 아직 JWT를 보낼 수 없음`}),_jsxs(_components.td,{children:[`Token Identity Verification을 끄세요. 모든 클라이언트가 `,_jsx(_components.a,{href:`#supported-sdks`,children:`지원되는 SDK`}),`를 사용할 때만 다시 켜세요.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Android에서 JWT 무효화 리스너가 호출되지 않음`}),_jsx(_components.td,{children:`이벤트가 발생한 후에 리스너가 추가됨`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`login`}),`을 호출하기 전에 `,_jsx(_components.code,{children:`Application.onCreate`}),`에서 리스너를 추가하세요.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`iOS에서 JWT 무효화 리스너가 더 이상 호출되지 않음`}),_jsx(_components.td,{children:`SDK가 리스너를 약한 참조로 유지하며 리스너가 해제됨`}),_jsx(_components.td,{children:`앱 수명 동안 리스너에 대한 강한 참조를 유지하세요.`})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`faq`,children:`FAQ \\\\`}),`\n`,_jsx(Heading,{level:`3`,id:`is-identity-verification-required`,children:`신원 확인은 필수인가요? \\\\`}),`\n`,_jsx(_components.p,{children:`아니요. 하지만 프로덕션 앱에는 강력히 권장됩니다. 신원 확인이 없으면 사용자의 External ID를 아는 모든 클라이언트가 해당 사용자를 사칭하여 구독이나 데이터를 수정할 수 있습니다.`}),`\n`,_jsx(Heading,{level:`3`,id:`what-is-the-identity-verification-for-email-external_id-toggle`,children:`“Identity Verification for email + external_id” 토글은 무엇인가요? \\\\`}),`\n`,_jsx(Frame,{caption:`Keys \u0026 IDs의 레거시 Identity Verification 토글`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/onesignal/q_BlLe_fAL4tDvWs/images/docs/legacy-iv-toggle.jpg?fit=max\u0026auto=format\u0026n=q_BlLe_fAL4tDvWs\u0026q=85\u0026s=7c07e9feedde98a29745251d38375525`,alt:`레거시 Identity Verification 토글이 표시된 설정 페이지`,\"data-og-width\":`710`,width:`710`,\"data-og-height\":`70`,height:`70`,\"data-path\":`images/docs/legacy-iv-toggle.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/onesignal/q_BlLe_fAL4tDvWs/images/docs/legacy-iv-toggle.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=q_BlLe_fAL4tDvWs\u0026q=85\u0026s=47b24309345365019e8f6337e120ebc1 280w, https://mintcdn.com/onesignal/q_BlLe_fAL4tDvWs/images/docs/legacy-iv-toggle.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=q_BlLe_fAL4tDvWs\u0026q=85\u0026s=61dde8dd142796b3155bc9c533d5ad8c 560w, https://mintcdn.com/onesignal/q_BlLe_fAL4tDvWs/images/docs/legacy-iv-toggle.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=q_BlLe_fAL4tDvWs\u0026q=85\u0026s=b416ad5abd645f9f152df552038513a3 840w, https://mintcdn.com/onesignal/q_BlLe_fAL4tDvWs/images/docs/legacy-iv-toggle.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=q_BlLe_fAL4tDvWs\u0026q=85\u0026s=5100064ff483ee737c40a7555600ba51 1100w, https://mintcdn.com/onesignal/q_BlLe_fAL4tDvWs/images/docs/legacy-iv-toggle.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=q_BlLe_fAL4tDvWs\u0026q=85\u0026s=0291d607c1705c0ea718f7e01c05d335 1650w, https://mintcdn.com/onesignal/q_BlLe_fAL4tDvWs/images/docs/legacy-iv-toggle.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=q_BlLe_fAL4tDvWs\u0026q=85\u0026s=65d3a0a914435215d1a252dc73c1a496 2500w`})}),`\n`,_jsxs(_components.p,{children:[`이 토글은 OneSignal SDK v3/v4용 별도의 레거시 설정입니다. 이 페이지에서 설명하는 JWT 기반 신원 확인이 아니며 SDK v5 앱을 보호하지 않습니다. SDK v5의 경우 `,_jsx(_components.strong,{children:`Settings > Keys \u0026 IDs`}),` 아래 `,_jsx(_components.strong,{children:`Identity Verification`}),` 섹션에서 `,_jsx(_components.strong,{children:`Generate New Keys`}),`를 사용하세요. `,_jsx(_components.a,{href:`#generate-keys`,children:`키 생성`}),`을 참조하세요.`]}),`\n`,_jsx(Heading,{level:`3`,id:`which-sdks-support-identity-verification`,children:`어떤 SDK가 신원 확인을 지원하나요? \\\\`}),`\n`,_jsxs(_components.p,{children:[`네이티브 Android SDK 5.9.0+, 네이티브 iOS SDK 5.8.0+, Web SDK 160900+입니다. 크로스 플랫폼 SDK(React Native, Expo, Flutter, Unity, Cordova, Ionic, Capacitor, .NET MAUI)는 아직 지원되지 않습니다. `,_jsx(_components.a,{href:`#supported-sdks`,children:`지원되는 SDK`}),`를 참조하세요.`]}),`\n`,_jsx(Heading,{level:`3`,id:`my-app-uses-a-cross-platform-sdk-can-i-turn-on-identity-verification`,children:`앱에서 크로스 플랫폼 SDK를 사용합니다. 신원 확인을 켤 수 있나요? \\\\`}),`\n`,_jsxs(_components.p,{children:[`아직은 안 됩니다. 대시보드에서 토글을 켤 수는 있지만 크로스 플랫폼 클라이언트는 JWT를 보낼 수 없어 로그인과 구독 업데이트가 실패합니다. 웹 래퍼는 `,_jsx(_components.code,{children:`login`}),`에 JWT를 전달할 수 있지만 만료 시 JWT를 갱신할 수는 없습니다. 지금 키를 생성하고 서버에서 JWT 서명을 구축한 다음, SDK가 지원되면 토글을 켜세요.`]}),`\n`,_jsx(Heading,{level:`3`,id:`where-does-the-web-sdk-store-the-jwt`,children:`Web SDK는 JWT를 어디에 저장하나요? \\\\`}),`\n`,_jsxs(_components.p,{children:[`사이트의 브라우저 `,_jsx(_components.code,{children:`localStorage`}),`에 External ID를 키로 하여 저장합니다. 따라서 토큰은 페이지를 새로 고쳐도 유지되며 여러 탭에서 공유됩니다. 사이트에서 실행되는 모든 스크립트가 `,_jsx(_components.code,{children:`localStorage`}),`를 읽을 수 있으므로 `,_jsx(_components.code,{children:`exp`}),`를 짧게 유지하고, 사용자에게 보여 주지 않을 정보는 JWT에 넣지 마세요.`]}),`\n`,_jsx(Heading,{level:`3`,id:`what-algorithm-does-the-jwt-use`,children:`JWT는 어떤 알고리즘을 사용하나요? \\\\`}),`\n`,_jsx(_components.p,{children:`ES256(P-256 및 SHA-256을 사용하는 ECDSA)입니다. 다른 알고리즘은 거부됩니다.`}),`\n`,_jsx(Heading,{level:`3`,id:`what-happens-if-the-jwt-expires-during-a-session`,children:`세션 중에 JWT가 만료되면 어떻게 되나요? \\\\`}),`\n`,_jsxs(_components.p,{children:[`SDK가 JWT 무효화 이벤트를 발생시킵니다. `,_jsx(_components.code,{children:`addUserJwtInvalidatedListener`}),`를 구현하여(`,_jsx(_components.a,{href:`#add-the-jwt-to-your-app`,children:`앱에 JWT 추가`}),` 참조) 새 토큰을 가져와 `,_jsx(_components.code,{children:`updateUserJwt`}),`에 전달하세요. 웹에서는 `,_jsx(_components.code,{children:`OneSignal.User.addEventListener`}),`로 `,_jsx(_components.code,{children:`userJwtInvalidated`}),` 이벤트를 수신하세요.`]}),`\n`,_jsx(Heading,{level:`3`,id:`do-i-need-identity-verification-for-the-rest-api`,children:`REST API에 신원 확인이 필요한가요? \\\\`}),`\n`,_jsxs(_components.p,{children:[`Token Identity Verification을 활성화한 후에만 필요합니다. 그러면 `,_jsx(_components.a,{href:`#rest-api`,children:`User 및 Subscription 엔드포인트`}),`에 `,_jsx(_components.code,{children:`Authorization: Bearer YOUR_ONESIGNAL_JWT`}),`가 필요합니다. 이러한 호출에는 App API key가 허용되지 않습니다. Create message 및 기타 사용자 외 엔드포인트는 여전히 `,_jsx(_components.code,{children:`Authorization: Key YOUR_APP_API_KEY`}),`를 사용합니다.`]}),`\n`,_jsx(Heading,{level:`3`,id:`what-happens-to-the-push-subscription-on-logout`,children:`로그아웃하면 푸시 구독은 어떻게 되나요? \\\\`}),`\n`,_jsxs(_components.p,{children:[`신원 확인이 활성화된 경우 `,_jsx(_components.code,{children:`logout()`}),`은 푸시 구독을 비활성화합니다. 구독은 해당 사용자와 계속 연결된 상태로 유지됩니다. JWT로 `,_jsx(_components.code,{children:`login`}),`을 호출하면 이전 구독 상태가 복원됩니다. `,_jsx(_components.code,{children:`optIn()`}),`을 다시 호출할 필요가 없습니다.`]}),`\n`,_jsxs(_components.p,{children:[`Android(Kotlin)에서 `,_jsx(_components.code,{children:`logoutSuspend()`}),`는 `,_jsx(_components.code,{children:`logout()`}),`의 논블로킹 버전입니다.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`related-pages`,children:`관련 페이지 \\\\`}),`\n`,_jsxs(Columns,{cols:2,children:[_jsx(Card,{title:`사용자`,icon:`users`,href:`/docs/ko/users`,children:_jsx(_components.p,{children:`External ID, 익명 사용자와 식별된 사용자, login/logout.`})}),_jsx(Card,{title:`Keys \u0026 IDs`,icon:`key`,href:`/docs/ko/keys-and-ids`,children:_jsx(_components.p,{children:`App ID, App API key 및 신원 확인 키의 위치.`})}),_jsx(Card,{title:`모바일 SDK 레퍼런스`,icon:`mobile`,href:`/docs/ko/mobile-sdk-reference`,children:_jsx(_components.p,{children:`login, logout, addEmail, addSms 및 구독 메서드.`})}),_jsx(Card,{title:`Web SDK 레퍼런스`,icon:`globe`,href:`/docs/ko/web-sdk-reference`,children:_jsx(_components.p,{children:`login, updateUserJwt, userJwtInvalidated 이벤트 및 기타 Web SDK 메서드.`})}),_jsx(Card,{title:`REST API 개요`,icon:`code`,href:`/reference/rest-api-overview`,children:_jsx(_components.p,{children:`JWT로 보호되지 않는 엔드포인트의 기본 App API key 인증.`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"신원 확인","description":"클라이언트가 다른 사용자의 External ID를 사칭하거나 소유하지 않은 이메일 및 SMS 구독을 가져가지 못하도록 로그인을 보호합니다. 네이티브 Android SDK 5.9.0+, iOS SDK 5.8.0+, Web SDK 160900+에서 정식 제공됩니다. 크로스 플랫폼 SDK는 아직 지원되지 않습니다.","keywords":["신원 확인","JWT","External ID","로그인 JWT","updateUserJwt","사용자 사칭","ES256","Token Identity Verification","Android SDK 5.9.0","iOS SDK 5.8.0","Web SDK 160900","userJwtInvalidated","OneSignalUserProfile","프로필로 로그인","JWT 401"],"href":"/docs/ko/identity-verification"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"지원되는 SDK \\","slug":"supported-sdks","depth":2,"children":[]},{"title":"사전 요구 사항 \\","slug":"prerequisites","depth":2,"children":[]},{"title":"키 생성 \\","slug":"generate-keys","depth":2,"children":[]},{"title":"JWT 생성 \\","slug":"create-the-jwt","depth":2,"children":[{"title":"JWT 페이로드 \\","slug":"jwt-payload","depth":3,"children":[]},{"title":"JWT 서명 \\","slug":"signing-the-jwt","depth":3,"children":[]},{"title":"JWT 확인 \\","slug":"verify-your-jwt","depth":3,"children":[]},{"title":"구독 포함 \\","slug":"including-subscriptions","depth":3,"children":[]}]},{"title":"앱에 JWT 추가 \\","slug":"add-the-jwt-to-your-app","depth":2,"children":[]},{"title":"토글을 켜면 달라지는 점 \\","slug":"what-changes-when-the-toggle-is-on","depth":2,"children":[]},{"title":"구독 추가 \\","slug":"adding-subscriptions","depth":2,"children":[]},{"title":"REST API \\","slug":"rest-api","depth":2,"children":[]},{"title":"문제 해결 \\","slug":"troubleshooting","depth":2,"children":[]},{"title":"FAQ \\","slug":"faq","depth":2,"children":[{"title":"신원 확인은 필수인가요? \\","slug":"is-identity-verification-required","depth":3,"children":[]},{"title":"“Identity Verification for email + external_id” 토글은 무엇인가요? \\","slug":"what-is-the-identity-verification-for-email-external_id-toggle","depth":3,"children":[]},{"title":"어떤 SDK가 신원 확인을 지원하나요? \\","slug":"which-sdks-support-identity-verification","depth":3,"children":[]},{"title":"앱에서 크로스 플랫폼 SDK를 사용합니다. 신원 확인을 켤 수 있나요? \\","slug":"my-app-uses-a-cross-platform-sdk-can-i-turn-on-identity-verification","depth":3,"children":[]},{"title":"Web SDK는 JWT를 어디에 저장하나요? \\","slug":"where-does-the-web-sdk-store-the-jwt","depth":3,"children":[]},{"title":"JWT는 어떤 알고리즘을 사용하나요? \\","slug":"what-algorithm-does-the-jwt-use","depth":3,"children":[]},{"title":"세션 중에 JWT가 만료되면 어떻게 되나요? \\","slug":"what-happens-if-the-jwt-expires-during-a-session","depth":3,"children":[]},{"title":"REST API에 신원 확인이 필요한가요? \\","slug":"do-i-need-identity-verification-for-the-rest-api","depth":3,"children":[]},{"title":"로그아웃하면 푸시 구독은 어떻게 되나요? \\","slug":"what-happens-to-the-push-subscription-on-logout","depth":3,"children":[]}]},{"title":"관련 페이지 \\","slug":"related-pages","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/onesignal/e069c1b9f3157e14/hotjar-koala.js","/_mintlify/custom/onesignal/3e5d03885ab32f49/intercom.js","/_mintlify/custom/onesignal/dbb7af4794d1b586/munchkin-marketo.js"],"subdomain":"onesignal","siteName":"OneSignal Documentation","title":"신원 확인 - OneSignal Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/docs/en/identity-verification","matchLevel":1},"cn":{"href":"/docs/cn/identity-verification","matchLevel":1},"ko":{"href":"/docs/ko/identity-verification","matchLevel":0},"ja":{"href":"/docs/ja/identity-verification","matchLevel":1},"tr":{"href":"/docs/tr/identity-verification","matchLevel":1},"pt-BR":{"href":"/docs/pt-BR/identity-verification","matchLevel":1},"es":{"href":"/docs/es/identity-verification","matchLevel":1},"fr":{"href":"/docs/fr/identity-verification","matchLevel":1}}},"lastModified":"2026-11-19T19:49:30.933Z","originalFileLocation":"docs/ko/identity-verification.mdx","locale":"ko"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"클라이언트가 다른 사용자의 External ID를 사칭하거나 소유하지 않은 이메일 및 SMS 구독을 가져가지 못하도록 로그인을 보호합니다. 네이티브 Android SDK 5.9.0+, iOS SDK 5.8.0+, Web SDK 160900+에서 정식 제공됩니다. 크로스 플랫폼 SDK는 아직 지원되지 않습니다.\">\u003cmeta data-mint-head name=\"application-name\" content=\"OneSignal Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/onesignal/eCiRydtW5fLfLRWp/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/onesignal/eCiRydtW5fLfLRWp/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/onesignal/eCiRydtW5fLfLRWp/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/onesignal/eCiRydtW5fLfLRWp/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/onesignal/eCiRydtW5fLfLRWp/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/onesignal/eCiRydtW5fLfLRWp/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/onesignal/eCiRydtW5fLfLRWp/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/onesignal/eCiRydtW5fLfLRWp/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/onesignal/eCiRydtW5fLfLRWp/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"신원 확인 - OneSignal Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"클라이언트가 다른 사용자의 External ID를 사칭하거나 소유하지 않은 이메일 및 SMS 구독을 가져가지 못하도록 로그인을 보호합니다. 네이티브 Android SDK 5.9.0+, iOS SDK 5.8.0+, Web SDK 160900+에서 정식 제공됩니다. 크로스 플랫폼 SDK는 아직 지원되지 않습니다.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OneSignal Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://documentation.onesignal.com/docs/ko/identity-verification\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://onesignal.mintlify.site/_mintlify/api/og/v2?division=%EA%B0%9C%EB%B0%9C%EC%9E%90+%EB%AC%B8%EC%84%9C\u0026amp;title=%EC%8B%A0%EC%9B%90+%ED%99%95%EC%9D%B8\u0026amp;description=%ED%81%B4%EB%9D%BC%EC%9D%B4%EC%96%B8%ED%8A%B8%EA%B0%80+%EB%8B%A4%EB%A5%B8+%EC%82%AC%EC%9A%A9%EC%9E%90%EC%9D%98+External+ID%EB%A5%BC+%EC%82%AC%EC%B9%AD%ED%95%98%EA%B1%B0%EB%82%98+%EC%86%8C%EC%9C%A0%ED%95%98%EC%A7%80+%EC%95%8A%EC%9D%80+%EC%9D%B4%EB%A9%94%EC%9D%BC+%EB%B0%8F+SMS+%EA%B5%AC%EB%8F%85%EC%9D%84+%EA%B0%80%EC%A0%B8%EA%B0%80%EC%A7%80+%EB%AA%BB%ED%95%98%EB%8F%84%EB%A1%9D+%EB%A1%9C%EA%B7%B8%EC%9D%B8%EC%9D%84+%EB%B3%B4%ED%98%B8%ED%95%A9%EB%8B%88%EB%8B%A4.+%EB%84%A4%EC%9D%B4%ED%8B%B0%EB%B8%8C+Android+SDK+5.9.0%2B%2C+iOS+SDK+5.8.0%2B%2C+Web+SDK+160900%2B%EC%97%90%EC%84%9C+%EC%A0%95%EC%8B%9D+%EC%A0%9C%EA%B3%B5%EB%90%A9%EB%8B%88%EB%8B%A4.+%ED%81%AC%EB%A1%9C%EC%8A%A4+%ED%94%8C%EB%9E%AB%ED%8F%BC+SDK%EB%8A%94+\u0026amp;theme=12e705baa88dc8cc6d7a9877\u0026amp;signature=af2cf8a2e1e334940d74bb10594c7e390161df0a898461e8f79140e1ce9f456e\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"신원 확인 - OneSignal Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"클라이언트가 다른 사용자의 External ID를 사칭하거나 소유하지 않은 이메일 및 SMS 구독을 가져가지 못하도록 로그인을 보호합니다. 네이티브 Android SDK 5.9.0+, iOS SDK 5.8.0+, Web SDK 160900+에서 정식 제공됩니다. 크로스 플랫폼 SDK는 아직 지원되지 않습니다.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://onesignal.mintlify.site/_mintlify/api/og/v2?division=%EA%B0%9C%EB%B0%9C%EC%9E%90+%EB%AC%B8%EC%84%9C\u0026amp;title=%EC%8B%A0%EC%9B%90+%ED%99%95%EC%9D%B8\u0026amp;description=%ED%81%B4%EB%9D%BC%EC%9D%B4%EC%96%B8%ED%8A%B8%EA%B0%80+%EB%8B%A4%EB%A5%B8+%EC%82%AC%EC%9A%A9%EC%9E%90%EC%9D%98+External+ID%EB%A5%BC+%EC%82%AC%EC%B9%AD%ED%95%98%EA%B1%B0%EB%82%98+%EC%86%8C%EC%9C%A0%ED%95%98%EC%A7%80+%EC%95%8A%EC%9D%80+%EC%9D%B4%EB%A9%94%EC%9D%BC+%EB%B0%8F+SMS+%EA%B5%AC%EB%8F%85%EC%9D%84+%EA%B0%80%EC%A0%B8%EA%B0%80%EC%A7%80+%EB%AA%BB%ED%95%98%EB%8F%84%EB%A1%9D+%EB%A1%9C%EA%B7%B8%EC%9D%B8%EC%9D%84+%EB%B3%B4%ED%98%B8%ED%95%A9%EB%8B%88%EB%8B%A4.+%EB%84%A4%EC%9D%B4%ED%8B%B0%EB%B8%8C+Android+SDK+5.9.0%2B%2C+iOS+SDK+5.8.0%2B%2C+Web+SDK+160900%2B%EC%97%90%EC%84%9C+%EC%A0%95%EC%8B%9D+%EC%A0%9C%EA%B3%B5%EB%90%A9%EB%8B%88%EB%8B%A4.+%ED%81%AC%EB%A1%9C%EC%8A%A4+%ED%94%8C%EB%9E%AB%ED%8F%BC+SDK%EB%8A%94+\u0026amp;theme=12e705baa88dc8cc6d7a9877\u0026amp;signature=af2cf8a2e1e334940d74bb10594c7e390161df0a898461e8f79140e1ce9f456e\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/onesignal/eCiRydtW5fLfLRWp/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OneSignal Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3A3DB3\">\u003clink data-mint-head rel=\"canonical\" href=\"https://documentation.onesignal.com/docs/ko/identity-verification\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/ko/identity-verification.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://documentation.onesignal.com/docs/ko/identity-verification\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://documentation.onesignal.com/docs/en/identity-verification\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://documentation.onesignal.com/docs/cn/identity-verification\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://documentation.onesignal.com/docs/ja/identity-verification\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"tr\" href=\"https://documentation.onesignal.com/docs/tr/identity-verification\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://documentation.onesignal.com/docs/pt-BR/identity-verification\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://documentation.onesignal.com/docs/es/identity-verification\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://documentation.onesignal.com/docs/fr/identity-verification\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://documentation.onesignal.com/docs/en/identity-verification\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://documentation.onesignal.com/#organization\",\"name\":\"OneSignal Documentation\",\"url\":\"https://documentation.onesignal.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/onesignal/yJcueeDCO7UpHnnY/logo/OneSignal-Logo.svg?fit=max\u0026auto=format\u0026n=yJcueeDCO7UpHnnY\u0026q=85\u0026s=1fcfb6fef6d820fd9d99c74850711107\"}},{\"@type\":\"WebSite\",\"@id\":\"https://documentation.onesignal.com#website\",\"name\":\"OneSignal Documentation\",\"url\":\"https://documentation.onesignal.com\",\"publisher\":{\"@id\":\"https://documentation.onesignal.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://documentation.onesignal.com/docs/ko/identity-verification#webpage\",\"url\":\"https://documentation.onesignal.com/docs/ko/identity-verification\",\"name\":\"신원 확인\",\"description\":\"클라이언트가 다른 사용자의 External ID를 사칭하거나 소유하지 않은 이메일 및 SMS 구독을 가져가지 못하도록 로그인을 보호합니다. 네이티브 Android SDK 5.9.0+, iOS SDK 5.8.0+, Web SDK 160900+에서 정식 제공됩니다. 크로스 플랫폼 SDK는 아직 지원되지 않습니다.\",\"dateModified\":\"2026-11-19T19:49:30.933Z\",\"isPartOf\":{\"@id\":\"https://documentation.onesignal.com#website\"},\"breadcrumb\":{\"@id\":\"https://documentation.onesignal.com/docs/ko/identity-verification#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://documentation.onesignal.com/docs/ko/identity-verification#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"개발자 문서\",\"item\":\"https://documentation.onesignal.com/docs/ko/developers\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"신원 확인\",\"item\":\"https://documentation.onesignal.com/docs/ko/identity-verification\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://documentation.onesignal.com/docs/ko/identity-verification#article\",\"headline\":\"신원 확인\",\"name\":\"신원 확인\",\"description\":\"클라이언트가 다른 사용자의 External ID를 사칭하거나 소유하지 않은 이메일 및 SMS 구독을 가져가지 못하도록 로그인을 보호합니다. 네이티브 Android SDK 5.9.0+, iOS SDK 5.8.0+, Web SDK 160900+에서 정식 제공됩니다. 크로스 플랫폼 SDK는 아직 지원되지 않습니다.\",\"url\":\"https://documentation.onesignal.com/docs/ko/identity-verification\",\"mainEntityOfPage\":{\"@id\":\"https://documentation.onesignal.com/docs/ko/identity-verification#webpage\"},\"dateModified\":\"2026-11-19T19:49:30.933Z\",\"keywords\":\"신원 확인, JWT, External ID, 로그인 JWT, updateUserJwt, 사용자 사칭, ES256, Token Identity Verification, Android SDK 5.9.0, iOS SDK 5.8.0, Web SDK 160900, userJwtInvalidated, OneSignalUserProfile, 프로필로 로그인, JWT 401\",\"publisher\":{\"@id\":\"https://documentation.onesignal.com/#organization\"},\"isPartOf\":{\"@id\":\"https://documentation.onesignal.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OneSignal Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"OneSignal Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/ko/identity-verification.md","siteName":"OneSignal Documentation","nav":{"global":null,"languages":[{"language":"en","pages":[{"title":"en","href":"/docs/en/identity-verification"}]},{"language":"cn","pages":[{"title":"cn","href":"/docs/cn/identity-verification"}]},{"language":"ko","tabs":[{"tab":"홈","pages":[{"title":"홈","href":"/docs/ko/home"}]},{"tab":"사용자 가이드","pages":[{"title":"사용자 가이드","href":"/docs/ko/quickstart-guide"}]},{"tab":"개발자 가이드","groups":[{"group":"개발자 문서","pages":[{"title":"개발자","description":"OneSignal 모바일 및 웹 SDK를 설정하고, App ID와 API 키를 찾고, 사용자를 식별하고, 출시 전에 통합을 테스트하세요.","href":"/docs/ko/developers"},{"title":"신원 확인","href":"/docs/ko/identity-verification"},{"title":"OneSignal MCP 서버","sidebarTitle":"MCP 서버","description":"호스팅된 MCP 서버 URL로 원격 MCP 서버를 지원하는 모든 AI 도구나 에이전트를 OneSignal에 연결하세요. Claude Code, Codex CLI, Cursor, VS Code, 사용자 지정 커넥터 설정과 Journey 도구를 포함해 서버가 지원하는 모든 도구를 다룹니다.","href":"/docs/ko/model-context-protocol"},{"group":"사용자 모델","pages":[{"title":"사용자 모델 및 마이그레이션 가이드","href":"/docs/ko/user-model-migration-guide"},{"title":"모바일 SDK 매핑","href":"/docs/ko/device-user-model-mobile-sdk-mapping"},{"title":"웹 SDK 매핑","href":"/docs/ko/device-user-model-web-sdk-mapping"}]}]},{"group":"모바일 SDKs","pages":[{"group":"모바일 SDK 설정","pages":[{"title":"모바일 SDK 설정","href":"/docs/ko/mobile-sdk-setup"},{"group":"플랫폼 자격 증명 설정","pages":[{"title":"Android Firebase 자격 증명","href":"/docs/ko/android-firebase-credentials"},{"title":"iOS p8 토큰 기반 APNs 연결","href":"/docs/ko/ios-p8-token-based-connection-to-apns"},{"title":"iOS p12 인증서 생성","href":"/docs/ko/ios-p12-generate-certificates"},{"title":"Amazon API 키 생성","href":"/docs/ko/generate-an-amazon-api-key"},{"title":"Huawei 승인","href":"/docs/ko/authorize-onesignal-to-send-huawei-push"}]},{"title":"iOS SDK 설정","href":"/docs/ko/ios-sdk-setup"},{"group":"Android SDK 설정","pages":[{"title":"Android SDK 설정","href":"/docs/ko/android-sdk-setup"},{"title":"Firebase Installation ID 등록","href":"/docs/ko/android-firebase-installation-id"}]},{"title":"Unity SDK 설정","href":"/docs/ko/unity-sdk-setup"},{"title":"React Native SDK 설정","href":"/docs/ko/react-native-sdk-setup"},{"title":"Expo SDK 설정","href":"/docs/ko/react-native-expo-sdk-setup"},{"title":"Flutter SDK 설정","href":"/docs/ko/flutter-sdk-setup"},{"title":"Flutterflow SDK 설정","href":"/docs/ko/flutterflow-sdk-setup"},{"title":"Cordova SDK 설정","href":"/docs/ko/cordova-sdk-setup"},{"title":"Capacitor SDK 설정","href":"/docs/ko/capacitor-sdk-setup"},{"title":".NET MAUI SDK 설정","href":"/docs/ko/net-sdk-setup"},{"title":"Amazon SDK 설정","href":"/docs/ko/amazon-sdk-setup"},{"title":"Huawei SDK 설정","href":"/docs/ko/huawei-sdk-setup"}]},{"group":"모바일 SDK 참조","pages":[{"title":"모바일 SDK 레퍼런스","href":"/docs/ko/mobile-sdk-reference"},{"title":"Mobile Service Extensions","href":"/docs/ko/service-extensions"},{"title":"알림 트레이 관리","href":"/docs/ko/managing-the-notification-tray"},{"title":"OSNotification payload","href":"/docs/ko/osnotification-payload"},{"title":"iOS: App Clip 지원","href":"/docs/ko/app-clip-support"}]},{"group":"모바일 SDK 문제 해결","pages":[{"title":"Mobile SDK 문제 해결","href":"/docs/ko/mobile-troubleshooting"},{"title":"디버그 로그 가져오기","href":"/docs/ko/capturing-a-debug-log"}]}]},{"group":"웹 SDKs","pages":[{"group":"웹 SDK 설정","pages":[{"title":"웹 SDK 설정","href":"/docs/ko/web-sdk-setup"},{"title":"iOS 웹 푸시 설정","href":"/docs/ko/web-push-for-ios"},{"title":"OneSignal service worker","href":"/docs/ko/onesignal-service-worker"},{"title":"OneSignal Web SDK를 사용한 사용자 지정 코드 웹 푸시 설정","href":"/docs/ko/web-push-custom-code-setup"},{"title":"Google Tag Manager 설정","href":"/docs/ko/google-tag-manager"},{"title":"Angular 웹 SDK 설정","href":"/docs/ko/angular-setup"},{"title":"ReactJS 및 NextJS 설정","href":"/docs/ko/react-js-setup"},{"title":"Vue JS Web SDK 설정","href":"/docs/ko/vue-js-setup"}]},{"title":"웹 SDK 참조","href":"/docs/ko/web-sdk-reference"},{"group":"웹 SDK 문제 해결","pages":[{"title":"Web SDK 문제 해결","href":"/docs/ko/troubleshooting-web-push"},{"title":"캐시 지우기 및 푸시 권한 재설정","href":"/docs/ko/clearing-cache-and-resetting-push-permissions"},{"title":"웹 푸시 Webhook","href":"/docs/ko/webhooks"}]}]},{"group":"실시간 현황","pages":[{"title":"Live Activities 개발자 설정","href":"/docs/ko/live-activities-developer-setup"},{"title":"크로스 플랫폼 Live Activity SDK 설정","href":"/docs/ko/cross-platform-live-activity-setup"},{"title":"Android Live Update 알림","href":"/docs/ko/android-live-notifications"}]},{"group":"데스크탑 \u0026 워치 설정","pages":[{"title":"macOS 앱 설정","href":"/docs/ko/macos-app-setup"},{"title":"Windows 앱 설정","href":"/docs/ko/windows-app-setup"},{"title":"watchOS 및 Wear OS 지원","href":"/docs/ko/watchos-and-wear-os-support"}]}]},{"tab":"튜토리얼","pages":[{"title":"튜토리얼","href":"/docs/ko/tutorials"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/reference/rest-api-overview"}]},{"tab":"Release Notes","pages":[{"title":"Release Notes","href":"/release-notes/changelog"}]}],"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://onesignal.com/blog"},{"anchor":"GitHub","icon":"github","href":"https://github.com/OneSignal"},{"anchor":"YouTube","icon":"youtube","href":"https://www.youtube.com/@onesignalofficial/playlists"}]}},{"language":"ja","pages":[{"title":"ja","href":"/docs/ja/identity-verification"}]},{"language":"tr","pages":[{"title":"tr","href":"/docs/tr/identity-verification"}]},{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/docs/pt-BR/identity-verification"}]},{"language":"es","pages":[{"title":"es","href":"/docs/es/identity-verification"}]},{"language":"fr","pages":[{"title":"fr","href":"/docs/fr/identity-verification"}]}]},"basePath":"","title":"신원 확인 - OneSignal Documentation","deploymentId":"dpl_3VZr4zL4q2wbintGwWjSCGUgnuP7","buildId":"dpl_3VZr4zL4q2wbintGwWjSCGUgnuP7","dynamics":["07c022d89b","a74be98ba7","a9bb46feb3"],"chunks":["Frame-BNZBpOKW.js","DynamicMarkdown-F4EfLno9.js","zoom-image-lightbox-CbF0jxOW.js","lightbox-handle-r17bVUz3.js","Markdown-BLge-GTN.js","AssistantPageLink-BFI2wFhH.js","dist-C1RpOC6K.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}