Auth0 Home Blog Docs

How to change the default audience

audience

#1

When we try to change the Default Audience (for example: from https://foo.bar.com to https://bar.com),
we receive the following error message:
No resource with identifier https://bar.com.
Is this because we have an API defined that uses https://foo.bar.com as the API Audience?
Thank You!


#2

The Default Audience must be an existing API identifier. You can check the API identifier in the API settings - this is the value that should be used for the default audience.
https://manage.auth0.com/#/apis

If your identifier is https://foo.bar.com, this should be set as the Default Audience.


#3

Hi,

I went to : https://manage.auth0.com/#/apis

My audience is xxx-dev

I went to https://manage.auth0.com/#/account
and change the default audience to xxx-dev then save

I continue to have the same error: Bearer error=“invalid_token”, error_description=“The audience is invalid”

Do you have another idea?


#4