first commit

This commit is contained in:
2025-04-22 10:56:56 +07:00
commit af123c091b
147 changed files with 778063 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import { getServerSession, getToken } from '#auth'
export default eventHandler(async (event) => {
const session = await getServerSession(event)
if (!session) {
event.context.auth = false
}
else {
const token = await getToken({ event })
event.context.auth = { token }
}
})