Hi,
Since today 28 july 2017, I have an error when I log: “The audience is invalid”
Nothing change in my code, so I imagine that Auth0 changes something …
Now I try to find the solution, I look on the community:
http://community.auth0.com/questions/5433/how-to-change-the-default-audience
http://community.auth0.com/search?f=&type=question+OR+idea+OR+kbentry&redirect=search%2Fsearch&sort=relevance&q=audience+is+invalid
https://www.google.ca/search?q=auth0+“The+audience+is+invalid”&rlz=1C1CHBF_enCA743CA743&oq=auth0+“The+audience+is+invalid”&aqs=chrome..69i57.8287j0j4&sourceid=chrome&ie=UTF-8
From what I understand:
in https://manage.auth0.com/#/apis, i can see the list of audience
mine is xxx-dev
Then i need to change the default audience in https://manage.auth0.com/#/account then save
=> Doesnt work, the error is still there.
So i thought, maybe i need to change directly on the call:
Im using GitHub - auth0/auth0.js: Auth0 headless browser sdk for Angular Web App
in my auth0.ts file using for Angular4 i added in my WebAuth variable:
import { WebAuth } from ‘auth0-js’;
return new WebAuth({
audience: config.audience, //xxx-dev
domain: config.domain,
responseType: ‘token id_token’,
clientID: config.clientID,
redirectUri: redirectUri,
state: id
});
=> Doesnt work, the error is still there.
I really dont understand what happens … it s a total mystery. Is there someone who knows how to fix that?