Skip to content

Commit

Permalink
fix : 타입 캐스팅 수정(없으면 null 반환) (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlswns2480 authored Sep 28, 2024
1 parent d2a76d3 commit 3236df3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 3236df3

Please sign in to comment.