change default auth encryption to argon2id instead of bcrypt

This commit is contained in:
Sylvain Briat 2024-03-12 08:28:13 +01:00
parent 88092be0fb
commit 1d153a7b89
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ REDIS_PORT=6379
# AUTH # AUTH
# encryption algorithm : BCRYPT / ARGON2I / ARGON2D / ARGON2ID # encryption algorithm : BCRYPT / ARGON2I / ARGON2D / ARGON2ID
ENCRYPTION_ALGORITHM=BCRYPT ENCRYPTION_ALGORITHM=ARGON2ID
# CARPOOL # CARPOOL
# default carpool departure time margin (in seconds) # default carpool departure time margin (in seconds)

View File

@ -6,5 +6,5 @@ export interface AuthConfig extends Config {
} }
export default registerAs('auth', () => ({ export default registerAs('auth', () => ({
encryptionAlgorithm: process.env.ENCRYPTION_ALGORITHM ?? 'BCRYPT', encryptionAlgorithm: process.env.ENCRYPTION_ALGORITHM ?? 'ARGON2ID',
})); }));