@schibsted/account-sdk-browser
    Preparing search index...

    Interface AccountConfig

    Configuration used to create an Account instance.

    interface AccountConfig {
        callbackBeforeRedirect?: IdentityBeforeRedirectCallback;
        clientId: string;
        defaultProductIds?: readonly string[];
        env?: AccountEnvironment;
        generateState: StateGenerator;
        getConsents?: ConsentReader;
        log?: LogFunction;
        redirectUri: string;
        refreshLoginLinks?: boolean;
        sessionDomain: string;
        varnish?: VarnishCookieOptions;
        window?: Window;
    }

    Hierarchy

    Index

    Properties

    callbackBeforeRedirect?: IdentityBeforeRedirectCallback

    Callback triggered before a session refresh redirect happens.

    clientId: string

    Mandatory client id. Example: "1234567890abcdef12345678"

    defaultProductIds?: readonly string[]

    Product or feature ids used by hasAccess() when no ids are passed to the method.

    Schibsted account environment. Defaults to PRE.

    generateState: StateGenerator

    Generates the OAuth state value used by login(), loginUrl(), and the simplified login widget when no explicit state is passed.

    getConsents?: ConsentReader

    Reads consents forwarded in login URLs. Defaults to the Schibsted Sourcepoint integration.

    Receives debug logs and consent reader errors. Without it, consent reader errors are reported through console.warn.

    redirectUri: string

    Redirect uri. Example: "https://site.com"

    refreshLoginLinks?: boolean

    Refresh consents of rendered login links when clicked. Defaults to true.

    sessionDomain: string

    Session Service domain. Example: "https://id.site.com"

    Optional Varnish cookie setup applied during Account initialization.

    window?: Window

    Window object to use. Defaults to the global window.