# Decode JWE's access token

**URL:** <https://community.auth0.com/t/decode-jwes-access-token/107508>\
**Category:** Get Help\
**Tags:** authentication-sessions, sessions\
**Created:** [May 22, 2023, 9:45am UTC](https://community.auth0.com/t/decode-jwes-access-token/107508 "2023-05-22T09:45:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kito.hirokazu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kito.hirokazu/32/47380_2.png) [@kito.hirokazu](https://community.auth0.com/u/kito.hirokazu)\
**Post date:** [May 22, 2023, 9:45am UTC](https://community.auth0.com/t/decode-jwes-access-token/107508/1 "2023-05-22T09:45:13Z")

</div>

I am implementing the decoding of access tokens with scratch.  
access token’s header indicates a common key as following  
{  
“alg”: “dir”,  
“enc”: “A256GCM”,  
“iss”: “XXX”  
}

In that case, I need common key which can decodes JWE,but there are no common key in the Auth0 dashboard. I think JWKS Endpoint cannot be used this time because it is a public key.  
Where is the commonkey

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [May 26, 2023, 10:45pm UTC](https://community.auth0.com/t/decode-jwes-access-token/107508/3 "2023-05-26T22:45:58Z")

</div>

Hey there @kito.hirokazu welcome to the community!

> [@kito.hirokazu](#):
>
> {  
> “alg”: “dir”,  
> “enc”: “A256GCM”,  
> “iss”: “XXX”  
> }

This looks like an opaque access token - If you need to decode it at all, you’ll need to include an audience param when constructing the `/authorize` request. It depends on how you are initiating authorization, but the audience is typically set when configuring Auth0 - For example [AuthorizationParams](https://auth0.github.io/auth0-react/interfaces/AuthorizationParams.html#audience) in auth0-react.

The following FAQs should be of use:

[https://community.auth0.com/t/why-is-my-access-token-not-a-jwt-opaque-token/31028](https://community.auth0.com/t/why-is-my-access-token-not-a-jwt-opaque-token/31028)  
[https://community.auth0.com/t/what-is-the-audience/71414](https://community.auth0.com/t/what-is-the-audience/71414)

---

<div class="post-metadata">

**Author:** ![kito.hirokazu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kito.hirokazu/32/47380_2.png) [@kito.hirokazu](https://community.auth0.com/u/kito.hirokazu)\
**Post date:** [May 30, 2023, 7:42am UTC](https://community.auth0.com/t/decode-jwes-access-token/107508/4 "2023-05-30T07:42:19Z")

</div>

Thank you for your help.  
I input Audience and I can get correct Token!!

---

<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:** [June 13, 2023, 7:42am UTC](https://community.auth0.com/t/decode-jwes-access-token/107508/5 "2023-06-13T07:42:52Z")

</div>

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