keycloak fix

This commit is contained in:
2025-07-01 13:45:20 +07:00
parent 1532ef6db8
commit 78b75999ea
13 changed files with 235 additions and 71 deletions

No files matched your search

+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' }
})