# Access\_token using pkce

**URL:** <https://community.auth0.com/t/access-token-using-pkce/9522>\
**Category:** Get Help\
**Tags:** access\_token, pkce, get-user-info-using-\
**Created:** [February 16, 2018, 6:43pm UTC](https://community.auth0.com/t/access-token-using-pkce/9522 "2018-02-16T18:43:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rakesh\_agrawal](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rakesh_agrawal/32/10413_2.png) [@rakesh\_agrawal](https://community.auth0.com/u/rakesh_agrawal)\
**Post date:** [February 16, 2018, 6:43pm UTC](https://community.auth0.com/t/access-token-using-pkce/9522/1 "2018-02-16T18:43:21Z")

</div>

Hi,  
I am understanding the way to create access\_token using pkce.  
I found this link: [Authorization Code Flow with Proof Key for Code Exchange (PKCE) - Auth0 Docs](https://auth0.com/docs/api-auth/grant/authorization-code-pkce)  
I notices that the access token which gets generated by this process doesn’t seems to be a JWT token. How do we generate a JWT tocken using pkce?

Thanks

---

<div class="post-metadata">

**Author:** ![ricardo.batista](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ricardo.batista/32/7711_2.png) [@ricardo.batista](https://community.auth0.com/u/ricardo.batista)\
**Post date:** [February 16, 2018, 11:35pm UTC](https://community.auth0.com/t/access-token-using-pkce/9522/2 "2018-02-16T23:35:19Z")

</div>

According to the [access token document](https://auth0.com/docs/tokens/access-token#access-token-format):

- If the audience is set to  
{YOUR\_AUTH0\_DOMAIN}/userinfo, then  
the Access Token will be an opaque  
string.
- If the audience is set to the unique  
identifier of a custom API, then the  
Access Token will be a JSON Web Token  
(JWT).

Also, when the audience is set to a custom API and the scope parameter includes the openid value, then the generated Access Token will be a JWT valid for both retrieving the user’s profile and for accessing the custom API.

For more information about creating and configuring an API in Auth0, see: [APIs](https://auth0.com/docs/apis#how-to-configure-an-api-in-auth0)

You should also check the **OIDC Conformant** switch, located in the client’s advanced settings. See this for more info: [Applications in Auth0](https://auth0.com/docs/api-auth/tutorials/adoption/oidc-conformant)

---

<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:** [August 27, 2019, 10:35am UTC](https://community.auth0.com/t/access-token-using-pkce/9522/3 "2019-08-27T10:35:50Z")

</div>

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