Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "scripts/init"

Index

Functions

Functions

Const init

  • init(args: { accessToken?: string; clientId: string; endpoint?: string; logger?: boolean; nickName?: string; storageStrategy?: IStorageStrategy; syncStrategy?: Object }): Promise<unknown>
  • Init function arguments

    Parameters

    • args: { accessToken?: string; clientId: string; endpoint?: string; logger?: boolean; nickName?: string; storageStrategy?: IStorageStrategy; syncStrategy?: Object }
      • Optional accessToken?: string

        The accessToken of a userProfile that is already saved to instantiate the application with

      • clientId: string

        clientId to instantiate the application with

      • Optional endpoint?: string
      • Optional logger?: boolean

        Set true to enable debug console logs

      • Optional nickName?: string

        If userProfile is not already saved, pass a nickName that you want the new userProfile top be instantiated with

      • Optional storageStrategy?: IStorageStrategy

        The storageStrategy is used to get/set accessToken, profile and other objects inside the application. This defaults to local Storage

      • Optional syncStrategy?: Object

    Returns Promise<unknown>

Generated using TypeDoc