Auth0 Home Blog Docs

checkSession triggers lot of authorize calls

I am building an Javascript SPA and I call checkSession when my token gets invalid. I saw that I get for one call to checkSession around 300 web requests to /authorize. Is that a normal behaviour?

That doesn’t sound right. Maybe something wrong in the application code? Sure that checkSession itself is only called once and not multiple times as well? Just for testing, you could checkout and run this JS sample at https://github.com/auth0-samples/auth0-javascript-samples/blob/master/02-User-Profile/app.js which also contains checkSession and see if you get the same behavior there as well.