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