From 1a6b8b2e6a7656baecf099fe1baa86cb5f5895f7 Mon Sep 17 00:00:00 2001 From: canove Date: Fri, 15 Jan 2021 07:25:51 -0300 Subject: [PATCH] fix: default token expiration time --- backend/src/config/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/config/auth.ts b/backend/src/config/auth.ts index 706f3d5..6f8c5fd 100644 --- a/backend/src/config/auth.ts +++ b/backend/src/config/auth.ts @@ -1,6 +1,6 @@ export default { secret: process.env.JWT_SECRET || "mysecret", - expiresIn: "15d", + expiresIn: "15m", refreshSecret: process.env.JWT_REFRESH_SECRET || "myanothersecret", refreshExpiresIn: "7d" };