I used Auth0 with my Vue.js app through the auth-vue SDK. I set up Auth0 and added a middleware authGuard for protected routesof the app.
But, I have a problem:
- When a user tries to go to a secure page without logging in, like “https://localhost:8080/dashboard/list,”
- Instead of going to the login page, they see a blank screen, and in the console, there’s an error message saying, “Login required.”
In the Auth0 logs, there’s an error that says “silent authentication failed.”
script.js:1 Error: Login required
at new t (auth0-spa-js.production.esm.js:1:1)
at t.fromPayload (auth0-spa-js.production.esm.js:1:1)
at r (auth0-spa-js.production.esm.js:1:1)