The axios 401 interceptor treated failed auth calls (the guard's own /api/auth/refresh, a wrong-password /api/auth/login) as an expired session and hard-navigated to a bare /login. That dropped the router guard's ?redirect= and reloaded the login page before its error could show. - Skip auto-refresh for login/register/refresh - On a real mid-use expiry, redirect to /login?redirect=<current path> - LoginView only follows in-app redirect paths Co-Authored-By: Claude Opus 5.5 <[email protected]>
23 lines
432 B
JSON
23 lines
432 B
JSON
{
|
|
"name": "homeschool-frontend",
|
|
"version": "2026.10.1",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"@vue/devtools-api": "8.2.1",
|
|
"axios": "1.20.0",
|
|
"pinia": "4.0.3",
|
|
"vue": "3.5.43",
|
|
"vue-router": "5.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@vitejs/plugin-vue": "6.0.10",
|
|
"vite": "8.3.4"
|
|
}
|
|
}
|