diff --git a/nuxt4/app/composables/useAuthentik.ts b/nuxt4/app/composables/useAuthentik.ts index 611600c..4a88c54 100644 --- a/nuxt4/app/composables/useAuthentik.ts +++ b/nuxt4/app/composables/useAuthentik.ts @@ -82,7 +82,14 @@ export const useAuthentik = () => { description: 'No hay sesión activa en Authentik', color: 'warning', icon: 'i-heroicons-exclamation-triangle', - timeout: 5000 + timeout: 10000, + actions: [{ + label: 'Iniciar Sesión', + click: () => { + // Recargar la página forzará a Authentik a redirigir al login + window.location.reload() + } + }] }) } } catch (error) { @@ -100,7 +107,14 @@ export const useAuthentik = () => { description: 'No hay sesión activa en Authentik', color: 'warning', icon: 'i-heroicons-exclamation-triangle', - timeout: 5000 + timeout: 10000, + actions: [{ + label: 'Iniciar Sesión', + click: () => { + // Recargar la página forzará a Authentik a redirigir al login + window.location.reload() + } + }] }) } else { // Error real de red o servidor