Migrated auth to Nitro

This commit is contained in:
lucast committed 2026-09-29 00:23:30 +02:00
1 parent 27feb1ce95
commit eb4e9f0700
16 files changed
+517 -129

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import { deleteCookie } from "h3"
import { REFRESH_COOKIE, SESSION_COOKIE } from "../../utils/auth"
export default defineEventHandler((event) => {
deleteCookie(event, REFRESH_COOKIE, { path: "/", sameSite: "lax", secure: !import.meta.dev })
deleteCookie(event, SESSION_COOKIE, { path: "/", sameSite: "lax", secure: !import.meta.dev })
return { success: true }
})