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', }));