mirror of
https://gitlab.com/mobicoop/v3/service/configuration.git
synced 2026-02-01 21:30:44 +00:00
change default auth encryption to argon2id instead of bcrypt
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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',
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user