From 3324408bfa5c12da36af2059dbabd4d775bc100b Mon Sep 17 00:00:00 2001 From: ga1az Date: Thu, 12 Sep 2024 20:32:10 -0300 Subject: [PATCH 1/2] feat: update JWT payload schema to support number values --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index ffc89dd..5016d53 100644 --- a/src/index.ts +++ b/src/index.ts @@ -109,11 +109,11 @@ JWTOption) => { jti: t.Optional(t.String()), nbf: t.Optional(t.Union([t.String(), t.Number()])), exp: t.Optional(t.Union([t.String(), t.Number()])), - iat: t.Optional(t.String()) + iat: t.Optional(t.Union([t.String(), t.Number()])) }) ]), {} - ) + ) : undefined return new Elysia({ From c974e2024d7d08153e0fafc629022e44b7b50283 Mon Sep 17 00:00:00 2001 From: ga1az Date: Thu, 12 Sep 2024 20:37:07 -0300 Subject: [PATCH 2/2] feat: update JWT payload schema to support number values --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 5016d53..30d550a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -113,7 +113,7 @@ JWTOption) => { }) ]), {} - ) + ) : undefined return new Elysia({