Update [hash].js
This commit is contained in:
parent
85ba96cb6f
commit
99598f2b7a
@ -1,9 +1,8 @@
|
||||
const z = require("zod")
|
||||
|
||||
const headerSchema = z.object({
|
||||
authorization: z.string().regex(new RegExp("^" + "Bearer" + "i"), {
|
||||
message: "Invalid bearer header"
|
||||
})
|
||||
authorization: z.string()
|
||||
.min(6)
|
||||
}).passthrough()
|
||||
|
||||
module.exports = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user