Merge branch 'auth' into 'main'

Fix auth config name

See merge request v3/service/configuration!34
This commit is contained in:
Sylvain Briat 2023-11-15 08:52:06 +00:00
commit 1bd50b7642
4 changed files with 5 additions and 5 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

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@mobicoop/configuration",
"version": "2.5.0",
"version": "2.5.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@mobicoop/configuration",
"version": "2.5.0",
"version": "2.5.1",
"license": "AGPL",
"dependencies": {
"@grpc/grpc-js": "^1.9.9",

View File

@ -1,6 +1,6 @@
{
"name": "@mobicoop/configuration",
"version": "2.5.0",
"version": "2.5.1",
"description": "Mobicoop V3 Configuration Service",
"author": "sbriat",
"private": true,

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