Directly reference tokenCacheFile
This commit is contained in:
parent
e9a0954528
commit
ef91acaf10
1 changed files with 2 additions and 2 deletions
|
@ -43,12 +43,12 @@ export class TokenCache {
|
||||||
|
|
||||||
public Write(session: Session): void {
|
public Write(session: Session): void {
|
||||||
const s: string = JSON.stringify(session, null, 4);
|
const s: string = JSON.stringify(session, null, 4);
|
||||||
fs.writeFile('.token_cache', s, (err: any) => {
|
fs.writeFile(this.tokenCacheFile, s, (err: any) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
return logger.error(err);
|
return logger.error(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.info('Fresh access token dropped into .token_cache \n'.green);
|
logger.info(`Fresh access token dropped into ${this.tokenCacheFile} \n`.green);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue