It seems there is something wrong in the way I do things.
I have the following code:
var lock = new Auth0Lock('secret','domain',{
oidcConformant: true,
auth: {
redirect: false,
responseType: 'token',
params: {
scope: 'openid profile email name'
},
audience: 'myaudience'
}
});
And when I try it on my website, the popup shows up, but instead of coming back to my page once the authentication is finish, it redirects the popup to the original page…
It used to work fine without the audience and without to oidcConformant, but then the token wouldn’t be recognized by my API.