Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mustofa-id committed Jan 11, 2024
1 parent e6a2267 commit 4d7791f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class RedisAuthStore implements AuthStore {
const { issued_at, expires_in } = detail;
const anticipate = 300; // seconds
const ttl = +issued_at + (+expires_in - anticipate) * 1000 - Date.now();
await rd.set(this.CACHE_KEY, JSON.stringify(detail), 'PX', ttl);
await redis.set(this.CACHE_KEY, JSON.stringify(detail), 'PX', ttl);
}

async get(): Promise<AuthDetail | undefined> {
Expand Down

0 comments on commit 4d7791f

Please sign in to comment.