Configure custom domain using Auth0.js on the Universal Login page

Hello, we want to configure custom domain with Auth.js. We have complete the verification process for the customised domain, and according to this documentation we have set the overrides option. Yet the custom domain doesn’t work. Any suggestions much appreciated.

In auth0.js

let params = Object.assign(
            overrides: {
              __tenant: config.auth0Tenant,
              __token_issuer: config.authorizationServer.issuer,
            clientID: config.clientID,
            domain: config.auth0Domain,
            redirectUri: config.callbackURL,
            responseType: "code",

        let webAuth = new auth0.WebAuth(params)

when logging the params in console the domain is not set to custom domain