你就快到了。尽管拥有
audience
作为
AuthConfig
the
customQueryParams
为此:
export const authConfig: AuthConfig = {
issuer: 'https://your-tenant-name.eu.auth0.com/',
clientId: 'your-spa-client-id-here',
redirectUri: window.location.origin + '/index.html',
scope: 'openid profile email',
customQueryParams: {
audience: 'https://your-api-audience-id.example.com',
},
};
观众
是您在Auth0中配置的标识符。下面是管理界面的截图: