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

    Type Alias AccountConfig

    AccountConfig: Omit<AccountBaseConfig, "env"> & {
        callbackBeforeRedirect?: IdentityBeforeRedirectCallback;
        defaultProductIds?: readonly string[];
        env?: AccountBaseConfig["env"];
        log?: LogFunction;
        varnish?: VarnishCookieOptions;
    }

    Configuration used to create an Account instance.

    Type Declaration

    • OptionalcallbackBeforeRedirect?: IdentityBeforeRedirectCallback

      Callback triggered before a session refresh redirect happens.

    • OptionaldefaultProductIds?: readonly string[]

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

    • Optionalenv?: AccountBaseConfig["env"]

      Schibsted account environment. Defaults to PRE.

    • Optionallog?: LogFunction

      Receives debug log information. If not set, no logging will be done.

    • Optionalvarnish?: VarnishCookieOptions

      Optional Varnish cookie setup applied during Account initialization.