# Getting "This token is not intended for us" when decoding ID Token

**URL:** <https://community.auth0.com/t/getting-this-token-is-not-intended-for-us-when-decoding-id-token/7164>\
**Category:** Get Help\
**Tags:** jwt-validation, php\
**Created:** [June 21, 2017, 2:02am UTC](https://community.auth0.com/t/getting-this-token-is-not-intended-for-us-when-decoding-id-token/7164 "2017-06-21T02:02:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mediawebstore](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@mediawebstore](https://community.auth0.com/u/mediawebstore)\
**Post date:** [June 21, 2017, 2:02am UTC](https://community.auth0.com/t/getting-this-token-is-not-intended-for-us-when-decoding-id-token/7164/1 "2017-06-21T02:02:06Z")

</div>

I do a login with Lock and request a id\_token with CURL. It’s all ok until I want to decode the id\_token with verifyAndDecode.  
I get an error “This token is not intended for us” that I verified is a aud that not match with my clientID, but in JWTVerifier config I have setting it right.  
For security I have a verify in [jwt.io](http://jwt.io) of the id\_token returned from login and with my client secret I get “Signature Verified”, so I can’t understand because of this error.

```
$verifier = new JWTVerifier(
                'valid_audiences' => 'MY_CLIENTID',
                'client_secret' => base64_encode('MY_CLIENT_SECRET'),
            ]);
            $decoded = $verifier->verifyAndDecode($response'id_token']);

```

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [July 17, 2017, 5:29pm UTC](https://community.auth0.com/t/getting-this-token-is-not-intended-for-us-when-decoding-id-token/7164/2 "2017-07-17T17:29:12Z")

</div>

Based on the [documentation for JWTVerifier available in the GH repository](https://github.com/auth0/auth0-PHP#decoding-and-verifying-tokens) the `valid_audiences` option seems to expect an array, more specifically, it seems your code should be `'MY_CLIENTID']` instead of just `'MY_CLIENTID'`.

I’m not very knowledgeable in PHP, but it’s the one thing that pops up when comparing your code to the sample code.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:54am UTC](https://community.auth0.com/t/getting-this-token-is-not-intended-for-us-when-decoding-id-token/7164/3 "2018-03-02T05:54:48Z")

</div>


