fix auth configuration name

This commit is contained in:
Sylvain Briat 2023-11-15 09:48:10 +01:00
parent f54eca303b
commit 5eb088dc94
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

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