Migrated auth to Nitro
This commit is contained in:
1 parent
27feb1ce95
commit
eb4e9f0700
16 files changed
+517
-129
No files matched your search
@@ -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 }
|
||||
})
|
||||
Reference in new issue
Block a user