I originally posted this question in https://stackoverflow.com/questions/60923700/auth0-checksession-call-to-renew-return-an-html-error-page, but I figured it’s better to ask here.
I have a Single Page App using Auth0 Implicit Flow with Silent Authentication. I got the authentication part working just fine, but when I try to implement checkSession method to renew the session in the background (as per Auth0.js v9 Reference - Auth0 Docs), the AJAX call to the auth0.com domain returns a 400 HTML error instead of a JSON one.
webAuth.checkSession({}, function (err, authResult) {
...
});
The error is Oops!, something went wrong , which I can see in my browser devtools Network Response tab.
There could be a misconfiguration in the system or a service outage. We track these errors automatically, but if the problem persists feel free to contact us. Please try again.
I am not sure why there would be an HTML response, and not sure what I might be doing wrong. I have added my page’s domain to the “Allowed Web Origins” list on the Auth0 application settings.