fix(core.gbapp): #387 adding /setupSecurity multiple tokens. Refresh token fix. @othonlima.

This commit is contained in:
Rodrigo Rodriguez 2023-12-24 10:33:20 -03:00
parent dbf0d965cd
commit f6557df78e

View file

@ -545,7 +545,7 @@ export class GBMinService {
await this.adminService.setValue(instance.instanceId,
`${tokenName}expiresOn`, token['expiresOn'] ?
token['expiresOn'].toString() :
new Date(Date.now() + token['expires_in']).toString());
new Date(Date.now() + (token['expires_in']*1000)).toString());
await this.adminService.setValue(instance.instanceId, `${tokenName}AntiCSRFAttackState`, null);