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