fix(core.gbapp): #387 adding /setupSecurity multiple tokens. Refresh token fix. @othonlima.
This commit is contained in:
parent
145cb47724
commit
c2ed3f65ce
1 changed files with 1 additions and 1 deletions
|
@ -609,7 +609,7 @@ export class GBVMService extends GBService {
|
||||||
const tokenName = tokens[i];
|
const tokenName = tokens[i];
|
||||||
const expiresOn = new Date(global[tokenName + "_expiresOn"]);
|
const expiresOn = new Date(global[tokenName + "_expiresOn"]);
|
||||||
|
|
||||||
if (expiresOn.getTime() > new Date().getTime()) {
|
if (expiresOn.getTime() < new Date().getTime()) {
|
||||||
|
|
||||||
const {token, expiresOn} = await sys.getCustomToken({pid, tokenName});
|
const {token, expiresOn} = await sys.getCustomToken({pid, tokenName});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue