misc: more security improvements

This commit is contained in:
Sheen Capadngan
2025-10-03 23:37:15 +08:00
parent 7227d43673
commit 4d6f8a6128
3 changed files with 46 additions and 14 deletions
@@ -124,7 +124,7 @@ export const registerPamSessionRouter = async (server: FastifyZodProvider) => {
})
}
},
onRequest: verifyAuth([AuthMode.IDENTITY_ACCESS_TOKEN]),
onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
handler: async (req) => {
const { session, projectId } = await server.services.pamSession.endSessionById(
req.params.sessionId,