From bc24a6b1db43f666b4394e7b18cdd9cf35d2652f Mon Sep 17 00:00:00 2001 From: Datalog-Mindhack <74062479+Datalog-Mindhack@users.noreply.github.com> Date: Mon, 9 Aug 2021 18:06:53 +0530 Subject: [PATCH 1/2] Update package.json (#1344) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thans for your Merge Request 🚀 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ea1d9854..038edf2c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "devDependencies": { - "husky": "^6.0.0" + "husky": "^7.0.1" }, "scripts": { "prepare": "husky install" From ddecf48697d759ddeb5facbac24af29721b1a5d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?gr=C3=A9goire=20parant?= Date: Mon, 9 Aug 2021 16:31:55 +0200 Subject: [PATCH 2/2] Update JWT expires days (#1347) --- pusher/src/Services/JWTTokenManager.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pusher/src/Services/JWTTokenManager.ts b/pusher/src/Services/JWTTokenManager.ts index 9a7c2695..bb21531c 100644 --- a/pusher/src/Services/JWTTokenManager.ts +++ b/pusher/src/Services/JWTTokenManager.ts @@ -11,7 +11,8 @@ export const tokenInvalidException = "tokenInvalid"; class JWTTokenManager { public createAuthToken(identifier: string) { - return Jwt.sign({ identifier }, SECRET_KEY, { expiresIn: "3d" }); + //TODO fix me 200d when ory authentication will be available + return Jwt.sign({ identifier }, SECRET_KEY, { expiresIn: "200d" }); } public decodeJWTToken(token: string): AuthTokenData {