Update [hash].js

This commit is contained in:
Gilles Lazures 2026-01-18 23:06:40 +01:00
parent 85ba96cb6f
commit 99598f2b7a

View File

@ -1,9 +1,8 @@
const z = require("zod") const z = require("zod")
const headerSchema = z.object({ const headerSchema = z.object({
authorization: z.string().regex(new RegExp("^" + "Bearer" + "i"), { authorization: z.string()
message: "Invalid bearer header" .min(6)
})
}).passthrough() }).passthrough()
module.exports = { module.exports = {