We use Auth0 with our React SPA application and we are trying to better understand how this Silent Authentication is supposed to work.
We are trying to refresh the tokens when they expire using the checkSession method in auth0.js. However, we will randomly get the login_required error. We can’t find any pattern to it - we’ve tried setting different timers to refresh the tokens - sometimes it works, sometimes it doesn’t. Sometimes we get a login_required error, then 10 minutes later it magically works.
Maybe we don’t understand what it means to be logged in via SSO? I feel like we are just missing some sort of basic understand on how this silent auth is supposed to work and the requirements around it. Hoping someone can shed some light on this for us!