mirror of
https://github.com/snobu/destreamer.git
synced 2026-03-28 22:39:07 +00:00
Fix warnings in TokenCache
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user