From 5eb088dc947e9509db31fa2c41064938c7475ddc Mon Sep 17 00:00:00 2001 From: Sylvain Briat Date: Wed, 15 Nov 2023 09:48:10 +0100 Subject: [PATCH] fix auth configuration name --- .env.dist | 2 +- src/config/auth.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.dist b/.env.dist index 4983b28..6e6dc9c 100644 --- a/.env.dist +++ b/.env.dist @@ -16,7 +16,7 @@ REDIS_PORT=6379 # DEFAULT CONFIGURATION # AUTH -# encryption algorithm : BCRYPT / ARGON2 / ARGON2I / ARGON2D / ARGON2ID +# encryption algorithm : BCRYPT / ARGON2I / ARGON2D / ARGON2ID ENCRYPTION_ALGORITHM=BCRYPT # CARPOOL diff --git a/src/config/auth.config.ts b/src/config/auth.config.ts index bee00b0..633c7a4 100644 --- a/src/config/auth.config.ts +++ b/src/config/auth.config.ts @@ -5,6 +5,6 @@ export interface AuthConfig extends Config { encryptionAlgorithm: string; } -export default registerAs('match', () => ({ +export default registerAs('auth', () => ({ encryptionAlgorithm: process.env.ENCRYPTION_ALGORITHM ?? 'BCRYPT', }));