From 3236df33d6201eb13a2104bf5d7301cc0851a8be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=9D=B8=EC=A4=80?= <54973090+dlswns2480@users.noreply.github.com> Date: Sat, 28 Sep 2024 17:40:41 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=ED=83=80=EC=9E=85=20=EC=BA=90?= =?UTF-8?q?=EC=8A=A4=ED=8C=85=20=EC=88=98=EC=A0=95(=EC=97=86=EC=9C=BC?= =?UTF-8?q?=EB=A9=B4=20null=20=EB=B0=98=ED=99=98)=20(#166)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/kotlin/com/pokit/auth/impl/AppleApiAdapter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapters/out-web/src/main/kotlin/com/pokit/auth/impl/AppleApiAdapter.kt b/adapters/out-web/src/main/kotlin/com/pokit/auth/impl/AppleApiAdapter.kt index 3a589791..7fb04c2f 100644 --- a/adapters/out-web/src/main/kotlin/com/pokit/auth/impl/AppleApiAdapter.kt +++ b/adapters/out-web/src/main/kotlin/com/pokit/auth/impl/AppleApiAdapter.kt @@ -24,7 +24,7 @@ class AppleApiAdapter( ) : AppleApiClient { override fun getUserInfo(idToken: String): UserInfo { val claims = decodeAndVerifyIdToken(idToken) // id token을 통해 사용자 정보 추출 - val email = claims["email"] as String + val email = claims["email"] as? String val sub = claims["sub"] as String return UserInfo(email = email, authPlatform = AuthPlatform.APPLE, sub = sub) }