# \[ solved \] Fails to decode id\_token

**URL:** <https://community.auth0.com/t/solved-fails-to-decode-id-token/9973>\
**Category:** JWT.io\
**Tags:** jwt\
**Created:** [March 12, 2018, 7:24am UTC](https://community.auth0.com/t/solved-fails-to-decode-id-token/9973 "2018-03-12T07:24:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![unahou](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@unahou](https://community.auth0.com/u/unahou)\
**Post date:** [March 12, 2018, 7:24am UTC](https://community.auth0.com/t/solved-fails-to-decode-id-token/9973/1 "2018-03-12T07:24:47Z")

</div>

Hi,  
My application is built in PHP and uses auth0/auth0-php. Just found when OIDC Conformant is enabled, it’s unable to decode id\_token. The code for decoding is like -

```
        $verifier = new \Auth0\SDK\JWTVerifier([
            'valid_audiences' => [$config->client_id],
            'client_secret' => base64_encode($config->client_secret)
        ]);
        $tokenInfo = $verifier->verifyAndDecode($input['id_token']);

```

If I disable OIDC Conformant, it is able to decode id\_token successfully.  
I am using HS256 as JsonWebToken Signature Algorithm. Is there anything I am missing for decoding id\_token?

Thanks,  
Una

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [December 18, 2018, 3:17pm UTC](https://community.auth0.com/t/solved-fails-to-decode-id-token/9973/2 "2018-12-18T15:17:15Z")

</div>

Hey @unahou

As it has been more than a few months since this topic was opened and there has been no reply or further information provided from the community as to the existence of the issue we would like to check if you are still facing the described challenge?

We are more than happy to assist in any way! If the issue is still out there please let us know so we can create a new thread for better visibility, otherwise we’ll close this one in week’s time.

Thank you!

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [December 25, 2018, 7:17am UTC](https://community.auth0.com/t/solved-fails-to-decode-id-token/9973/4 "2018-12-25T07:17:23Z")

</div>

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.
