From 7a6a75a9589d942aae9afab0104f8fd331990a55 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Mon, 31 Jul 2023 19:20:11 -0700 Subject: [PATCH] Rename SIGN_IN_PREFILLED env variable --- .ergomake/docker-compose.yml | 2 +- server/.env.example | 2 +- server/.env.test | 2 +- server/src/integrations/environment/environment.service.ts | 2 +- server/src/integrations/environment/environment.validation.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.ergomake/docker-compose.yml b/.ergomake/docker-compose.yml index e16ded42a5..f657ad711c 100644 --- a/.ergomake/docker-compose.yml +++ b/.ergomake/docker-compose.yml @@ -19,7 +19,7 @@ services: - "3000:3000" environment: DEBUG_MODE: false - IS_SIGN_IN_PREFILLED: true + SIGN_IN_PREFILLED: true ACCESS_TOKEN_SECRET: "secret_jwt" LOGIN_TOKEN_SECRET: "secret_login_token" REFRESH_TOKEN_SECRET: "secret_refresh_token" diff --git a/server/.env.example b/server/.env.example index f3f95f6afb..c2be24d6f6 100644 --- a/server/.env.example +++ b/server/.env.example @@ -3,7 +3,7 @@ FRONT_BASE_URL=http://localhost:3001 ACCESS_TOKEN_SECRET=replace_me_with_a_random_string LOGIN_TOKEN_SECRET=replace_me_with_a_random_string REFRESH_TOKEN_SECRET=replace_me_with_a_random_string -IS_SIGN_IN_PREFILLED=true +SIGN_IN_PREFILLED=true # ———————— Optional ———————— # DEBUG_MODE=true diff --git a/server/.env.test b/server/.env.test index 7706883a1b..952b6f30b0 100644 --- a/server/.env.test +++ b/server/.env.test @@ -10,7 +10,7 @@ REFRESH_TOKEN_SECRET=secret_refresh_token # ———————— Optional ———————— # DEBUG_MODE=false -# IS_SIGN_IN_PREFILLED=false +# SIGN_IN_PREFILLED=false # ACCESS_TOKEN_EXPIRES_IN=30m # LOGIN_TOKEN_EXPIRES_IN=15m # REFRESH_TOKEN_EXPIRES_IN=90d diff --git a/server/src/integrations/environment/environment.service.ts b/server/src/integrations/environment/environment.service.ts index 8c49a2b0f6..2fbe02703f 100644 --- a/server/src/integrations/environment/environment.service.ts +++ b/server/src/integrations/environment/environment.service.ts @@ -14,7 +14,7 @@ export class EnvironmentService { } isSignInPrefilled(): boolean { - return this.configService.get('IS_SIGN_IN_PREFILLED') ?? false; + return this.configService.get('SIGN_IN_PREFILLED') ?? false; } isTelemetryEnabled(): boolean { diff --git a/server/src/integrations/environment/environment.validation.ts b/server/src/integrations/environment/environment.validation.ts index 270e2387a1..d180861189 100644 --- a/server/src/integrations/environment/environment.validation.ts +++ b/server/src/integrations/environment/environment.validation.ts @@ -27,7 +27,7 @@ export class EnvironmentVariables { @CastToBoolean() @IsOptional() @IsBoolean() - IS_SIGN_IN_PREFILLED?: boolean; + SIGN_IN_PREFILLED?: boolean; @CastToBoolean() @IsOptional()