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