Configuration for creating a journey client instance.

Extends AsyncLegacyConfigOptions so that the same config object can be shared across journey-client, davinci-client, and oidc-client. Properties like clientId, scope, and redirectUri are accepted but not used by journey-client — a warning is logged when they are provided.

const config: JourneyClientConfig = {
serverConfig: {
wellknown: 'https://am.example.com/am/oauth2/alpha/.well-known/openid-configuration',
},
};
interface JourneyClientConfig {
    callbackFactory?: JourneyCallbackFactory;
    clientId?: string;
    middleware?: LegacyRequestMiddleware[];
    oauthThreshold?: number;
    platformHeader?: boolean;
    prefix?: string;
    realmPath?: string;
    redirectUri?: string;
    scope?: string;
    serverConfig: JourneyServerConfig;
    tokenStore?: CustomStorageObject | "sessionStorage" | "localStorage";
    tree?: string;
    type?: string;
}

Hierarchy (View Summary)

Properties

callbackFactory?: JourneyCallbackFactory
clientId?: string
oauthThreshold?: number
platformHeader?: boolean
prefix?: string
realmPath?: string
redirectUri?: string
scope?: string
serverConfig: JourneyServerConfig
tokenStore?: CustomStorageObject | "sessionStorage" | "localStorage"
tree?: string
type?: string