Files
seguidorDeLotes/nuxt4-app/server/routes/auth/logout.get.ts
josedario87 7612487d3f
All checks were successful
build-and-deploy / build (push) Successful in 2m7s
build-and-deploy / deploy (push) Successful in 3s
Add Nuxt 4 app with OAuth/OIDC authentication and PWA support
- Integrated Authentik OAuth/OIDC authentication
- Added PWA functionality with offline support
- Created protected and public API endpoints
- Configured Docker deployment with Traefik
- Added Gitea Actions CI/CD workflow
- Included comprehensive setup documentation
2025-10-11 17:12:05 -06:00

11 lines
240 B
TypeScript

/**
* Logout Handler
* Ruta: /auth/logout
*
* Limpia la sesión del usuario y redirige a la página de inicio
*/
export default defineEventHandler(async (event) => {
await clearUserSession(event)
return sendRedirect(event, '/')
})