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

    Function createAccountSdk

    • Creates and registers the single Account SDK instance for the current browser window.

      The created instance is stored on window.schAccount and the SDK emits schAccount:ready with the instance in event.detail.instance.

      Parameters

      • config: AccountConfig

        Client, redirect, environment, and Session Service configuration.

      Returns Account

      If the SDK cannot run in the current browser context, if an Account instance has already been initialized, or if configuration validation fails.