🚧 CreateAuth - use proper refreshTokenCount

ref #12
This commit is contained in:
Philipp Dormann 2020-12-05 13:07:18 +01:00
parent c0c95056bf
commit 82f31185a1
1 changed files with 1 additions and 1 deletions

View File

@ -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")