From 82f31185a1aaba1cb3d4e3812ff65ef62d042e4c Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Sat, 5 Dec 2020 13:07:18 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20CreateAuth=20-=20use=20proper=20?= =?UTF-8?q?refreshTokenCount?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref #12 --- src/models/creation/CreateAuth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/creation/CreateAuth.ts b/src/models/creation/CreateAuth.ts index f21c026..5642375 100644 --- a/src/models/creation/CreateAuth.ts +++ b/src/models/creation/CreateAuth.ts @@ -43,7 +43,7 @@ export class CreateAuth { // const timestamp_refresh_expiry = Math.floor(Date.now() / 1000) + 10 * 36000 newAuth.refresh_token = jsonwebtoken.sign({ - refreshtokencount: 5, + refreshtokencount: found_user.refreshTokenCount, userid: found_user.id, exp: timestamp_refresh_expiry }, "securekey")