# Access token is not JWT format

**URL:** <https://community.auth0.com/t/access-token-is-not-jwt-format/61945>\
**Category:** Get Help\
**Tags:** jwt, api, auth0\
**Created:** [April 29, 2021, 10:19am UTC](https://community.auth0.com/t/access-token-is-not-jwt-format/61945 "2021-04-29T10:19:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhuangps.fnst](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/zhuangps.fnst/32/12745_2.png) [@zhuangps.fnst](https://community.auth0.com/u/zhuangps.fnst)\
**Post date:** [April 29, 2021, 10:19am UTC](https://community.auth0.com/t/access-token-is-not-jwt-format/61945/1 "2021-04-29T10:19:40Z")

</div>

In my scenario, Auth0 is used for Amazon Alexa.  
I use Alexa’s account linking function to get access token from Auth0, and then call my cloud API with the access token. But the access token cloud API received is not JWT format, and I could not check the permission. I knows I could call some Auth0’s API to get user profile to check permission, but I think it’s not good. Does anyone know how to make Auth0 return JWT format access token.  
I just configured some setting in the Alexa 's configure page like API path, client ID etc. and did not do some coding. I am so confusing for this problem, and I hope someone could help me.

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [April 29, 2021, 11:16am UTC](https://community.auth0.com/t/access-token-is-not-jwt-format/61945/3 "2021-04-29T11:16:45Z")

</div>

Hi @zhuangps.fnst,

Welcome to the Community!

In your Alexa’s configure page do you have a registered API identifier as the audience? In order to receive a JWT, you’ll have to [register your API](https://auth0.com/docs/get-started/set-up-apis) and then use the identifier for the audience in the client application.

[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)

---

<div class="post-metadata">

**Author:** ![zhuangps.fnst](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/zhuangps.fnst/32/12745_2.png) [@zhuangps.fnst](https://community.auth0.com/u/zhuangps.fnst)\
**Post date:** [April 30, 2021, 1:16am UTC](https://community.auth0.com/t/access-token-is-not-jwt-format/61945/4 "2021-04-30T01:16:03Z")

</div>

Hi @stephanie.chamblee

Thank you for your reply.

As this is my first time to use Alexa to develop smart speaker function. I’m not sure the configure page in Alexa is what you mentioned. I just use this configure to get token from Auth0 successfully. But when I pass token to my cloud API, the cloud found that the token is not JWT format and can’t do other things. Could you have a look of my configure, and figure out where I make a mistake?

I don’t know where I should configure the audience, so I ask here.

 ![Alexa Setting](https://global.discourse-cdn.com/auth0/original/3X/6/a/6aa04e701938cff1733cec4a8c689386fbad7cc9.png)

---

<div class="post-metadata">

**Author:** ![zhuangps.fnst](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/zhuangps.fnst/32/12745_2.png) [@zhuangps.fnst](https://community.auth0.com/u/zhuangps.fnst)\
**Post date:** [April 30, 2021, 1:40am UTC](https://community.auth0.com/t/access-token-is-not-jwt-format/61945/5 "2021-04-30T01:40:14Z")

</div>

I am so confusing that “Alexa Skill Setup” seems not configure for audience.

[[Tutorial] How to set up Account Linking for Alexa with Auth0 and Jovo | Jovo](https://www.jovo.tech/tutorials/alexa-account-linking-auth0)

---

<div class="post-metadata">

**Author:** ![devdanyan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/devdanyan/32/39541_2.png) [@devdanyan](https://community.auth0.com/u/devdanyan)\
**Post date:** [September 22, 2022, 11:12pm UTC](https://community.auth0.com/t/access-token-is-not-jwt-format/61945/6 "2022-09-22T23:12:48Z")

</div>

I’m running into the same issue, a commenter mentioned “Set the default audience in your tenant settings” but I do not see how to set this any where.

> **[\[Tutorial\] How to set up Account Linking for Alexa with Auth0 and Jovo](https://community.jovo.tech/t/tutorial-how-to-set-up-account-linking-for-alexa-with-auth0-and-jovo/36)**
>
> In this guide, we will show you how to set up Account Linking for your Amazon Alexa Skill, without having to deal with all the security issues and the burden of running your own OAuth 2.0 server. We will do this by using Auth0, a service for...

---

<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:** [September 22, 2022, 11:22pm UTC](https://community.auth0.com/t/access-token-is-not-jwt-format/61945/7 "2022-09-22T23:22:02Z")

</div>

Hey there @devdanyan welcome to the community!

You can set the default audience in your [Tenant Settings](https://auth0.com/docs/get-started/tenant-settings#api-authorization-settings) or using the [Management API](https://auth0.com/docs/api/management/v2#!/Tenants/patch_settings).

---

<div class="post-metadata">

**Author:** ![devdanyan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/devdanyan/32/39541_2.png) [@devdanyan](https://community.auth0.com/u/devdanyan)\
**Post date:** [September 23, 2022, 12:08am UTC](https://community.auth0.com/t/access-token-is-not-jwt-format/61945/8 "2022-09-23T00:08:15Z")

</div>

Thank you, I also found that I can add audience as parameter to the auth url in the alexa account linking settings page.

https://[your auth0 account].auth0.com/authorize?audience=[the identifier of API]

---

<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:** [October 7, 2022, 12:08am UTC](https://community.auth0.com/t/access-token-is-not-jwt-format/61945/9 "2022-10-07T00:08:53Z")

</div>

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