@candlerip/shared3 0.0.76 → 0.0.77

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared3",
3
- "version": "0.0.76",
3
+ "version": "0.0.77",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -4,6 +4,11 @@ export declare const ENVIRONMENT_VARIABLE: {
4
4
  readonly APP_PORT: "number";
5
5
  readonly AUTHENTICATION_AUDIENCE: "string";
6
6
  readonly AUTHENTICATION_DOMAIN: "string";
7
+ readonly AUTH0_BASE_URL: "string";
8
+ readonly AUTH0_CLIENT_ID: "string";
9
+ readonly AUTH0_CLIENT_SECRET: "string";
10
+ readonly AUTH0_ISSUER_BASE_URL: "string";
11
+ readonly AUTH0_SECRET: "string";
7
12
  readonly BACKEND_URL: "string";
8
13
  readonly CACHE_ENABLED: "boolean";
9
14
  readonly CACHE_SERVICE_PORT: "number";
@@ -4,6 +4,11 @@ export const ENVIRONMENT_VARIABLE = {
4
4
  APP_PORT: 'number',
5
5
  AUTHENTICATION_AUDIENCE: 'string',
6
6
  AUTHENTICATION_DOMAIN: 'string',
7
+ AUTH0_BASE_URL: 'string',
8
+ AUTH0_CLIENT_ID: 'string',
9
+ AUTH0_CLIENT_SECRET: 'string',
10
+ AUTH0_ISSUER_BASE_URL: 'string',
11
+ AUTH0_SECRET: 'string',
7
12
  BACKEND_URL: 'string',
8
13
  CACHE_ENABLED: 'boolean',
9
14
  CACHE_SERVICE_PORT: 'number',
@@ -1,5 +1,5 @@
1
1
  export declare const ENVIRONMENT_VARIABLES_CONFIG: {
2
- readonly app: readonly ["APP_PORT", "BACKEND_URL", "DATABASE_URL", "NODE_ENV", "RABBITMQ_URL", "REDIS_PWD", "REDIS_URL", "S3_IMAGES_BUCKET_NAME"];
2
+ readonly app: readonly ["APP_PORT", "AUTH0_BASE_URL", "AUTH0_CLIENT_ID", "AUTH0_CLIENT_SECRET", "AUTH0_ISSUER_BASE_URL", "AUTH0_SECRET", "BACKEND_URL", "DATABASE_URL", "NODE_ENV", "RABBITMQ_URL", "REDIS_PWD", "REDIS_URL", "S3_IMAGES_BUCKET_NAME"];
3
3
  readonly 'cache-service': readonly ["CACHE_ENABLED", "CACHE_SERVICE_PORT", "DATABASE_URL", "NODE_ENV", "RABBITMQ_URL", "REDIS_PWD", "REDIS_URL"];
4
4
  readonly images: readonly ["NODE_ENV", "S3_IMAGES_BUCKET_NAME"];
5
5
  readonly 'images-init': readonly ["FRONTEND_URL", "NODE_ENV", "S3_IMAGES_BUCKET_NAME"];
@@ -1,5 +1,19 @@
1
1
  export const ENVIRONMENT_VARIABLES_CONFIG = {
2
- app: ['APP_PORT', 'BACKEND_URL', 'DATABASE_URL', 'NODE_ENV', 'RABBITMQ_URL', 'REDIS_PWD', 'REDIS_URL', 'S3_IMAGES_BUCKET_NAME'],
2
+ app: [
3
+ 'APP_PORT',
4
+ 'AUTH0_BASE_URL',
5
+ 'AUTH0_CLIENT_ID',
6
+ 'AUTH0_CLIENT_SECRET',
7
+ 'AUTH0_ISSUER_BASE_URL',
8
+ 'AUTH0_SECRET',
9
+ 'BACKEND_URL',
10
+ 'DATABASE_URL',
11
+ 'NODE_ENV',
12
+ 'RABBITMQ_URL',
13
+ 'REDIS_PWD',
14
+ 'REDIS_URL',
15
+ 'S3_IMAGES_BUCKET_NAME',
16
+ ],
3
17
  'cache-service': ['CACHE_ENABLED', 'CACHE_SERVICE_PORT', 'DATABASE_URL', 'NODE_ENV', 'RABBITMQ_URL', 'REDIS_PWD', 'REDIS_URL'],
4
18
  images: ['NODE_ENV', 'S3_IMAGES_BUCKET_NAME'],
5
19
  'images-init': ['FRONTEND_URL', 'NODE_ENV', 'S3_IMAGES_BUCKET_NAME'],
@@ -3,6 +3,11 @@ export declare const EnvironmentVariablesSingleton: {
3
3
  get: <T extends keyof EnvironmentVariables = never>() => EnvironmentVariables[T];
4
4
  init: (envs: {
5
5
  APP_PORT: number;
6
+ AUTH0_BASE_URL: string;
7
+ AUTH0_CLIENT_ID: string;
8
+ AUTH0_CLIENT_SECRET: string;
9
+ AUTH0_ISSUER_BASE_URL: string;
10
+ AUTH0_SECRET: string;
6
11
  BACKEND_URL: string;
7
12
  DATABASE_URL: string;
8
13
  NODE_ENV: "development" | "production";