From 4ad30eddcf653e5f4996691d79b1d6f1a6f32b15 Mon Sep 17 00:00:00 2001 From: Walaff Fernandes Date: Mon, 10 Jun 2024 11:36:50 -0300 Subject: [PATCH] feat: update CelCashService to set access token expiration time in seconds --- packages/adonis/src/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/adonis/src/client.ts b/packages/adonis/src/client.ts index 92bf2f8..b1030f0 100644 --- a/packages/adonis/src/client.ts +++ b/packages/adonis/src/client.ts @@ -18,7 +18,7 @@ export class CelCashService extends CelCashServiceContract { } protected async setCachedAccessToken(value: string, expiresIn: number): Promise { - 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) {