While working with the SPA sdk I’ve read the following at: Auth0 Single Page App SDK
Using createAuth0Client does a couple of things automatically:
It suppresses all errors from
getTokenSilently
, exceptlogin_required
.
It seems likt that was the case until this commit: [SDK-3583] Do not throw from checkSession (#943) · auth0/auth0-spa-js@c08a81d · GitHub last year.
I am not sure if this is the correct place but it would help if these docs get updated as for me it caused a lot of confusion as to why I didn’t see a ‘login_required’ error.