Fix warnings in TokenCache
This commit is contained in:
parent
7c32b2f310
commit
3314cc08b5
1 changed files with 5 additions and 1 deletions
|
@ -28,12 +28,16 @@ export class TokenCache {
|
||||||
|
|
||||||
let timeLeftInMinutes = Math.floor(timeLeft / 60);
|
let timeLeftInMinutes = Math.floor(timeLeft / 60);
|
||||||
console.log("\n");
|
console.log("\n");
|
||||||
term.bgBrightGreen.black(`Access token still good for ${timeLeftInMinutes} minutes.`);
|
|
||||||
console.log("\n");
|
console.log("\n");
|
||||||
if (timeLeft < 120) {
|
if (timeLeft < 120) {
|
||||||
|
term.bgBrightYellow.black("Access token is expired.").bgDefaultColor("\n");
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
term.bgBrightGreen.black(`Access token still good for ${timeLeftInMinutes} minutes.`)
|
||||||
|
.bgDefaultColor("\n");
|
||||||
|
|
||||||
let session: Session = {
|
let session: Session = {
|
||||||
AccessToken: j.AccessToken,
|
AccessToken: j.AccessToken,
|
||||||
ApiGatewayUri: j.ApiGatewayUri,
|
ApiGatewayUri: j.ApiGatewayUri,
|
||||||
|
|
Loading…
Reference in a new issue