I’ve just activated a custom domain for my angular 7 app.
In the documentation I gather I need to change the previous code from
webAuth = new auth0.WebAuth({
clientID: this._clientId,
domain: 'auto0.tenant.url',
responseType: 'token id_token',
redirectUri: location.origin + '/callback',
scope: 'openid',
});
to
webAuth = new auth0.WebAuth({
clientID: this._clientId,
domain: 'login.mydomain.com',
responseType: 'token id_token',
redirectUri: location.origin + '/callback',
scope: 'openid',
overrides: {
__tenant: 'auto0.tenant.url',
__token_issuer: 'login.mydomain.com'
},
});
When I do that I get a build error
error TS2345: Argument of type '{ clientID: string; domain: string; responseType: string; redirectUri: string; scope: string; overrides: { __tenant: string;
__token_issuer: string; }; }' is not assignable to parameter of type 'AuthOptions'.
Object literal may only specify known properties, and 'overrides' does not exist in type 'AuthOptions'.
I installed auth0 via NPM and the version is “auth0-js”: “^9.10.0”,
Is the documentation outdated?
Please help,
nisbus