Update [hash].js

This commit is contained in:
Gilles Lazures 2026-01-18 23:03:05 +01:00
parent 53e58bdb30
commit ac6eca3f31

View File

@ -1,7 +1,9 @@
const z = require("zod")
const headerSchema = z.object({
authorization: z.string().startsWith("Bearer ")
authorization: z.string().regex(/^Bearer\s+/i, {
message: "Invalid bearer header"
})
}).passthrough()
module.exports = {