Skip to content

Commit

Permalink
feat: update CelCashService to set access token expiration time in se…
Browse files Browse the repository at this point in the history
…conds
  • Loading branch information
lncitador committed Jun 10, 2024
1 parent 45f19a9 commit 4ad30ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/adonis/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class CelCashService extends CelCashServiceContract {
}

protected async setCachedAccessToken(value: string, expiresIn: number): Promise<void> {
await this.#redis.set(CelCashService.CACHE.ACCESS_TOKEN, value, 'PX', expiresIn)
await this.#redis.set(CelCashService.CACHE.ACCESS_TOKEN, value, 'EX', expiresIn)
}

constructor(config: ResolvedConfig, logger: LoggerService, redis: RedisService) {
Expand Down

0 comments on commit 4ad30ed

Please sign in to comment.