fix dockerfile
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
// middleware/auth.ts
|
||||
import { useAuth } from '~/composables/useAuth';
|
||||
import { useAuthSession } from '~/composables/useAuth';
|
||||
|
||||
export default defineNuxtRouteMiddleware(async (to) => {
|
||||
// This middleware should only run on the client-side after the initial server-side render.
|
||||
@@ -7,7 +7,7 @@ export default defineNuxtRouteMiddleware(async (to) => {
|
||||
return;
|
||||
}
|
||||
|
||||
const { isLoggedIn, fetchUserSession } = useAuth();
|
||||
const { isLoggedIn, fetchUserSession } = useAuthSession();
|
||||
|
||||
// Initial check
|
||||
if (!isLoggedIn.value) {
|
||||
|
||||
Reference in New Issue
Block a user