From c642b31aefac750aa6caf639cd993bec128573e4 Mon Sep 17 00:00:00 2001 From: Kristoffer Date: Wed, 30 Aug 2023 13:54:13 +0000 Subject: [PATCH] fix: add blank to username/password if undefined --- src/external-jwt/cache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/external-jwt/cache.ts b/src/external-jwt/cache.ts index 3baebd8..e5263e9 100644 --- a/src/external-jwt/cache.ts +++ b/src/external-jwt/cache.ts @@ -29,7 +29,7 @@ function getCache(): Keyv | null { uri = env['REDIS'] if(uri == null || uri === '') { - uri = `redis://${env['REDIS_USERNAME'] }:${env['REDIS_PASSWORD'] || ''}@${env['REDIS_HOST']}:${env['REDIS_PORT']}`; + uri = `redis://${env['REDIS_USERNAME'] || '' }:${env['REDIS_PASSWORD'] || ''}@${env['REDIS_HOST']}:${env['REDIS_PORT']}`; }