refs #6140 fix: el valor de ttl ya no es undefined
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2023-08-22 12:51:53 +02:00
parent d72e3ec4ec
commit e4bb822714
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ export default class Token {
if (!this.token) return; if (!this.token) return;
const created = storage.getItem('vnTokenCreated'); const created = storage.getItem('vnTokenCreated');
this.created = created && new Date(created); this.created = created && new Date(created);
this.renewPeriod = storage.getItem('vnTokenRenewPeriod'); this.ttl = storage.getItem('vnTokenTtl');
} }
setStorage(storage, token, created, ttl) { setStorage(storage, token, created, ttl) {