Update [hash].js
This commit is contained in:
parent
53e58bdb30
commit
ac6eca3f31
@ -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 = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user