From a6a9423f75ac96153d631c7b0c62ff383b6c4721 Mon Sep 17 00:00:00 2001 From: josedario87 Date: Fri, 21 Nov 2025 21:51:56 -0600 Subject: [PATCH] Fix: checkSessionStatus() solo en cliente (usa navigator.onLine) --- nuxt4/app/composables/useAuthentik.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nuxt4/app/composables/useAuthentik.ts b/nuxt4/app/composables/useAuthentik.ts index 00e079f..675fda0 100644 --- a/nuxt4/app/composables/useAuthentik.ts +++ b/nuxt4/app/composables/useAuthentik.ts @@ -86,6 +86,9 @@ export const useAuthentik = () => { } const checkSessionStatus = async () => { + // Solo ejecutar en el cliente + if (!import.meta.client) return + const toast = useToast() // Verificar si está offline primero