Rename SIGN_IN_PREFILLED env variable
This commit is contained in:
@ -19,7 +19,7 @@ services:
|
|||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
environment:
|
environment:
|
||||||
DEBUG_MODE: false
|
DEBUG_MODE: false
|
||||||
IS_SIGN_IN_PREFILLED: true
|
SIGN_IN_PREFILLED: true
|
||||||
ACCESS_TOKEN_SECRET: "secret_jwt"
|
ACCESS_TOKEN_SECRET: "secret_jwt"
|
||||||
LOGIN_TOKEN_SECRET: "secret_login_token"
|
LOGIN_TOKEN_SECRET: "secret_login_token"
|
||||||
REFRESH_TOKEN_SECRET: "secret_refresh_token"
|
REFRESH_TOKEN_SECRET: "secret_refresh_token"
|
||||||
|
|||||||
@ -3,7 +3,7 @@ FRONT_BASE_URL=http://localhost:3001
|
|||||||
ACCESS_TOKEN_SECRET=replace_me_with_a_random_string
|
ACCESS_TOKEN_SECRET=replace_me_with_a_random_string
|
||||||
LOGIN_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
|
REFRESH_TOKEN_SECRET=replace_me_with_a_random_string
|
||||||
IS_SIGN_IN_PREFILLED=true
|
SIGN_IN_PREFILLED=true
|
||||||
|
|
||||||
# ———————— Optional ————————
|
# ———————— Optional ————————
|
||||||
# DEBUG_MODE=true
|
# DEBUG_MODE=true
|
||||||
|
|||||||
@ -10,7 +10,7 @@ REFRESH_TOKEN_SECRET=secret_refresh_token
|
|||||||
|
|
||||||
# ———————— Optional ————————
|
# ———————— Optional ————————
|
||||||
# DEBUG_MODE=false
|
# DEBUG_MODE=false
|
||||||
# IS_SIGN_IN_PREFILLED=false
|
# SIGN_IN_PREFILLED=false
|
||||||
# ACCESS_TOKEN_EXPIRES_IN=30m
|
# ACCESS_TOKEN_EXPIRES_IN=30m
|
||||||
# LOGIN_TOKEN_EXPIRES_IN=15m
|
# LOGIN_TOKEN_EXPIRES_IN=15m
|
||||||
# REFRESH_TOKEN_EXPIRES_IN=90d
|
# REFRESH_TOKEN_EXPIRES_IN=90d
|
||||||
|
|||||||
@ -14,7 +14,7 @@ export class EnvironmentService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
isSignInPrefilled(): boolean {
|
isSignInPrefilled(): boolean {
|
||||||
return this.configService.get<boolean>('IS_SIGN_IN_PREFILLED') ?? false;
|
return this.configService.get<boolean>('SIGN_IN_PREFILLED') ?? false;
|
||||||
}
|
}
|
||||||
|
|
||||||
isTelemetryEnabled(): boolean {
|
isTelemetryEnabled(): boolean {
|
||||||
|
|||||||
@ -27,7 +27,7 @@ export class EnvironmentVariables {
|
|||||||
@CastToBoolean()
|
@CastToBoolean()
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsBoolean()
|
@IsBoolean()
|
||||||
IS_SIGN_IN_PREFILLED?: boolean;
|
SIGN_IN_PREFILLED?: boolean;
|
||||||
|
|
||||||
@CastToBoolean()
|
@CastToBoolean()
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
|
|||||||
Reference in New Issue
Block a user