> For the complete documentation index, see [llms.txt](https://chc3484.gitbook.io/sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chc3484.gitbook.io/sdk/ko/server-side/apple-identity-token.md).

# Apple identity token 검증

{% hint style="success" %}
To [verify the identity token](https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_rest_api/verifying_a_user#3383769), 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
  {% endhint %}

### 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)
	}
}
```
