Custom domain with auth0-js - "You should not be hitting this endpoint"

Getting the following error on calling the authorize method:
“You should not be hitting this endpoint. Make sure to use the code snippets shown in the tutorial or contact support@auth0.com for help”

Stack:

  • React SPA
  • auth0-js

Here’s my config:

const auth = new auth0.WebAuth({
  domain: customDomain
  clientID: clientId,
  redirectUri: callbackUrl,
  responseType: 'token id_token',
  scope: 'openid email',
})

auth.authorize()

Please help.

Thanks,
Vashistha

Nevermind. Had to follow the instructions and add the _overrides property in Universal Login. Thanks!

Glad you were able to find it!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.