Universal SDK
Korean
Korean
  • README
  • Unity SDK
    • 시작하기
      • 안드로이드 설정(더 이상 사용되지 않음)
      • 안드로이드 설정
        • Jitpack 으로 마이그레이션
      • iOS 설정
    • Integrations
    • Trouble Shooting
      • 구글 로그인 이슈
      • 앱 실행시 UniversalSDK.framework Load 실패
      • 안드로이드 프로가드 ClassNotFoundException
  • console guide
    • Google Login
      • Android
      • iOS
    • Apple Login
      • Android
        • Redirect 서버
      • iOS
    • Facebook Login
  • server side
    • Google ID token 검증
    • Apple identity token 검증
    • Facebook access token 검증
Powered by GitBook
On this page
  1. server side

Apple identity token 검증

PreviousGoogle ID token 검증NextFacebook access token 검증

Last updated 1 year ago

To , your app server must

  • Verify the JWS E256 signature using the server’s public key

  • Verify the nonce for the authentication

  • Verify that the iss field contains https://appleid.apple.com

  • Verify that the aud field is the developer’s client_id

  • Verify that the time is earlier than the exp value of the token

Go :

import(
    "github.com/coolishbee/go-verify-apple-id-token"
)

func main() {
	client := New()

	jwtClaims, err := client.VerifyIdToken("com.clientId.here", "idToken")
	if err != nil {
		t.Errorf("%s", err)
	} else {
		fmt.Println(jwtClaims.Email)
	}
}
verify the identity token