Skip to content

Commit 5d7491e

Browse files
authored
Merge pull request #3 from deadlinecode/patch-schema_validator
Schema Validator Security Fix
2 parents b602614 + 59b7407 commit 5d7491e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ JWTOption<Name, Schema>) => {
103103

104104
const validator = schema
105105
? getSchemaValidator(
106-
t.Union([
106+
t.Intersect([
107107
schema,
108108
t.Object({
109109
iss: t.Optional(t.String()),

0 commit comments

Comments
 (0)