# Can't get lock to return a JWT

**URL:** <https://community.auth0.com/t/cant-get-lock-to-return-a-jwt/10096>\
**Category:** JWT.io\
**Tags:** lock\
**Created:** [March 15, 2018, 6:10am UTC](https://community.auth0.com/t/cant-get-lock-to-return-a-jwt/10096 "2018-03-15T06:10:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![trackfly](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@trackfly](https://community.auth0.com/u/trackfly)\
**Post date:** [March 15, 2018, 6:10am UTC](https://community.auth0.com/t/cant-get-lock-to-return-a-jwt/10096/1 "2018-03-15T06:10:16Z")

</div>

I’ve read lots of docs and no matter what I do I cannot get Lock to give me back a JWT as the docs indicate it will. It will only give me the short access token. What do I have to do to get a JWT? Do you have an example?

This is with Google Acct

---

<div class="post-metadata">

**Author:** ![fady](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fady/32/7927_2.png) [@fady](https://community.auth0.com/u/fady)\
**Post date:** [March 15, 2018, 10:22pm UTC](https://community.auth0.com/t/cant-get-lock-to-return-a-jwt/10096/2 "2018-03-15T22:22:53Z")

</div>

Hey @trackfly 👋 There are 2 types of token formats that Auth0 generates:

1. Opaque strings
2. JWTs

The type of token you receive depends on your query to the `/authorize` endpoint or your Lock configuration. To get a JWT, you will need to specify the `audience` parameter to either use an API you have setup in the Dashboard or `https://YOUR_TENANT.auth0.com/api/v2/`

The following document outlines the types of access tokens and the scenarios in which each type is generated: [https://auth0.com/docs/tokens/access-token#access-token-format](https://auth0.com/docs/tokens/access-token#access-token-format)

I’d also recommend starting out with one of the Quickstarts to get up and running: [Auth0](https://auth0.com/docs)

Let me know if you have any other questions!

---

<div class="post-metadata">

**Author:** ![trackfly](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@trackfly](https://community.auth0.com/u/trackfly)\
**Post date:** [March 19, 2018, 3:02am UTC](https://community.auth0.com/t/cant-get-lock-to-return-a-jwt/10096/3 "2018-03-19T03:02:54Z")

</div>

Thanks, that definitely got it returning a JWT, appreciate the assistance.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 25, 2019, 11:09am UTC](https://community.auth0.com/t/cant-get-lock-to-return-a-jwt/10096/4 "2019-07-25T11:09:28Z")

</div>


