Skip to content

Commit

Permalink
Merge pull request snobu#367 from jirkavrba/fix-typo
Browse files Browse the repository at this point in the history
Fix typo in .token_cache
  • Loading branch information
lukaarma authored Apr 15, 2021
2 parents cb68933 + ef91aca commit 757aab1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/TokenCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ export class TokenCache {

public Write(session: Session): void {
const s: string = JSON.stringify(session, null, 4);
fs.writeFile('.token_cache', s, (err: any) => {
fs.writeFile(this.tokenCacheFile, s, (err: any) => {
if (err) {
return logger.error(err);
}
logger.info('Fresh access token dropped into .token_cachen \n'.green);

logger.info(`Fresh access token dropped into ${this.tokenCacheFile} \n`.green);
});
}
}
Expand Down

0 comments on commit 757aab1

Please sign in to comment.