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
+3
View File
@@ -0,0 +1,3 @@
export default defineEventHandler((event) => ({
auth: event.context.auth ,
}));
+10
View File
@@ -0,0 +1,10 @@
import { getServerSession, getToken } from '#auth'
export default eventHandler(async (event) => {
const session = await getServerSession(event)
if (!session) {
return { status: 'unauthenticated!' }
}
const token = await getToken({event})
return token || {status: 'no token present'}
})