From deb5df2ce3a228cf28c2b024be9fed51744aed96 Mon Sep 17 00:00:00 2001 From: Gabriel Silva Date: Tue, 14 Feb 2023 15:34:28 -0300 Subject: [PATCH] Add. mais tempo ao token jwt - Back-end. --- back-end/src/adapters/JwtAdapter/JwtAdapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back-end/src/adapters/JwtAdapter/JwtAdapter.ts b/back-end/src/adapters/JwtAdapter/JwtAdapter.ts index 24639c0..fffe73f 100644 --- a/back-end/src/adapters/JwtAdapter/JwtAdapter.ts +++ b/back-end/src/adapters/JwtAdapter/JwtAdapter.ts @@ -9,7 +9,7 @@ import { export class JwtAdapter implements IJwtAdapter { generateToken ( { id }: IJwtAuthenticationData ) { - const expiresIn = "1d"; + const expiresIn = 1647456000; //* 30 dias const token = jwt.sign( { id,