mirror of
https://github.com/snobu/destreamer.git
synced 2026-01-16 21:12:13 +00:00
Fix warnings in TokenCache
This commit is contained in:
@@ -28,12 +28,16 @@ export class TokenCache {
|
||||
|
||||
let timeLeftInMinutes = Math.floor(timeLeft / 60);
|
||||
console.log("\n");
|
||||
term.bgBrightGreen.black(`Access token still good for ${timeLeftInMinutes} minutes.`);
|
||||
console.log("\n");
|
||||
if (timeLeft < 120) {
|
||||
term.bgBrightYellow.black("Access token is expired.").bgDefaultColor("\n");
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
term.bgBrightGreen.black(`Access token still good for ${timeLeftInMinutes} minutes.`)
|
||||
.bgDefaultColor("\n");
|
||||
|
||||
let session: Session = {
|
||||
AccessToken: j.AccessToken,
|
||||
ApiGatewayUri: j.ApiGatewayUri,
|
||||
|
||||
Reference in New Issue
Block a user