Simplify auth system by removing throttling and mobile workarounds
All checks were successful
Build And Push Image / docker (push) Successful in 3m0s
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user