Simplify auth system by removing throttling and mobile workarounds
All checks were successful
Build And Push Image / docker (push) Successful in 3m0s

- Remove session check throttling mechanism from useAuth composable
- Eliminate forced auth check parameters throughout codebase
- Replace window.location redirects with standard navigateTo()
- Remove mobile-specific authentication handling and diagnostics
- Move auth check to onMounted hook in login page
- Clean up console logging for auth operations
This commit is contained in:
2025-08-07 17:12:05 +02:00
parent 616490dfef
commit 423d8c3aa1
4 changed files with 222 additions and 46 deletions

View File

@@ -7,9 +7,9 @@ export default defineNuxtRouteMiddleware(async (to) => {
// Use the same auth system as the rest of the app
const { isAuthenticated, checkAuth, user } = useAuth();
// Ensure auth is checked if user isn't loaded - use forced check for middleware
// Ensure auth is checked if user isn't loaded
if (!user.value) {
await checkAuth(true); // Force check to bypass throttling in middleware
await checkAuth();
}
if (!isAuthenticated.value) {