Using webAuth.checkSession getting 400

Using the example provided here example

webAuth.checkSession({}, function (err, authResult) {});

webAuth has been initialised with the same configs as I’m using for webAuth.parseHash & webAuth.authorize. I"m able to login successfully with those configs.

However with webAuth.checkSession I’m getting Failed to load resource: the server responded with a status of 400 () in the console.
There isn’t anything in the network tab. If I open the link that is giving 400 in another tab I’m getting a page
https://mydomain.eu.auth0.com/authorize with an error message. Is there something I need to change in settings to make this work?

1 Like

For anyone else who comes across this issue, I needed to add localhost:3000 to Application > Settings > Allowed Web Origins

Also I enabled Refresh Token under Advanced Settings > Grant Types

8 Likes

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