Member Junction
    Preparing search index...

    Environment configuration interface for MemberJunction Angular applications

    interface MJEnvironmentConfig {
        AUTH_TYPE:
            | "msal"
            | "auth0"
            | "okta"
            | "cognito"
            | "workos"
            | "magic-link"
            | string & {};
        AUTH0_CLIENTID?: string;
        AUTH0_DOMAIN?: string;
        CLIENT_ID?: string;
        enableServiceWorker?: boolean;
        GRAPHQL_URI: string;
        GRAPHQL_WS_URI: string;
        MJ_CORE_SCHEMA_NAME: string;
        production: boolean;
        TENANT_ID?: string;
        WORKOS_API_HOSTNAME?: string;
        WORKOS_CLIENTID?: string;
        WORKOS_DEV_MODE?: boolean;
        WORKOS_REDIRECT_URI?: string;
        [key: string]: any;
    }

    Indexable

    • [key: string]: any

      Additional custom environment properties

    Index

    Properties

    AUTH_TYPE:
        | "msal"
        | "auth0"
        | "okta"
        | "cognito"
        | "workos"
        | "magic-link"
        | string & {}

    Authentication provider type — matches the key a provider registers with via @RegisterClass(MJAuthBase, '<type>'). Built-in providers are listed for autocomplete, but any string is valid so third parties can plug in their own provider without editing this union. Resolved at runtime by string key through ClassFactory.GetRegistration(MJAuthBase, authType).

    AUTH0_CLIENTID?: string

    Auth0 client ID (for Auth0 auth)

    AUTH0_DOMAIN?: string

    Auth0 domain (for Auth0 auth)

    'myapp.us.auth0.com'
    
    CLIENT_ID?: string

    Microsoft Azure AD/Entra Client ID (for MSAL auth)

    enableServiceWorker?: boolean

    Master kill switch for the Angular service worker app-shell pre-cache. Only effective when production is also true. When false (default), MJExplorerAppModule.forRoot() does not register the service worker and the update-notification toast is inert.

    Set to true only after you've also added the serviceWorker entry to your angular.json build configuration so a real ngsw-worker.js is generated. See @memberjunction/ng-explorer-service-worker README.

    GRAPHQL_URI: string

    GraphQL HTTP endpoint URL

    'http://localhost:4000/graphql'
    
    GRAPHQL_WS_URI: string

    GraphQL WebSocket endpoint URL for subscriptions

    'ws://localhost:4000/graphql'
    
    MJ_CORE_SCHEMA_NAME: string

    MemberJunction core schema name in the database

    '__mj'
    
    production: boolean

    Whether the app is running in production mode

    TENANT_ID?: string

    Microsoft Azure AD/Entra Tenant ID (for MSAL auth)

    WORKOS_API_HOSTNAME?: string

    WorkOS API hostname override (for WorkOS auth). Rarely needed — only for custom domains or a proxy in front of the WorkOS API.

    WORKOS_CLIENTID?: string

    WorkOS AuthKit client ID (for WorkOS auth)

    'client_01HABCDEF...'
    
    WORKOS_DEV_MODE?: boolean

    Enables WorkOS AuthKit dev mode (localStorage-backed session, tolerant of missing third-party cookies). Use only in local development.

    WORKOS_REDIRECT_URI?: string

    WorkOS OAuth redirect URI (for WorkOS auth). Must be registered in the WorkOS dashboard. Defaults to window.location.origin when omitted.