From 917d6e2a8422f6a740ef8ce3870d10a50cd961fc Mon Sep 17 00:00:00 2001 From: Marco Pedone Date: Thu, 4 Sep 2025 12:40:24 +0200 Subject: [PATCH] fix: change expiresIn parameter to string type in signToken function --- apps/infoalloggi/src/server/auth/jwt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/infoalloggi/src/server/auth/jwt.ts b/apps/infoalloggi/src/server/auth/jwt.ts index 52425e5..099467c 100644 --- a/apps/infoalloggi/src/server/auth/jwt.ts +++ b/apps/infoalloggi/src/server/auth/jwt.ts @@ -7,7 +7,7 @@ const secret = new TextEncoder().encode(env.JWT_SECRET); export async function signToken( payload: Session, - expiresIn = "1h", + expiresIn: string, type: "accessToken" | "refreshToken", ) { try {