Skip to content

Commit 17873a2

Browse files
committed
chore: change exp and nbf to integer in payload validation schema
1 parent b75bded commit 17873a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ JWTOption<Name, Schema>) => {
109109
t.Union([t.String(), t.Array(t.String())])
110110
),
111111
jti: t.Optional(t.String()),
112-
nbf: t.Optional(t.Union([t.String(), t.Number()])),
113-
exp: t.Optional(t.Union([t.String(), t.Number()])),
112+
nbf: t.Optional(t.Integer()),
113+
exp: t.Optional(t.Integer()),
114114
iat: t.Optional(t.Integer())
115115
})
116116
]),

0 commit comments

Comments
 (0)