Constructors

  • Parameters

    • params: {
          appKey: string;
          wepinLogin?: WepinLogin;
      }
      • appKey: string

        appKey in your workspace app

      • OptionalwepinLogin?: WepinLogin

    Returns WepinPin

Properties

_isInitialized: boolean = false
_userInfo: IWepinUser
_wepinFetch: WepinFetch
_wepinLifeCycle: "initializing" | "initialized" | "login"
appId: string
appKey: string
modal: IWepinModal = ...
type: "web" | "android" | "ios"
webviewEventHandler: WebviewEventHandler = ...
wepinAppAttributes: IWepinSDKAttributes
wepinStorage: IWepinStorage = ...
widget?: Widget

Accessors

  • get login(): WepinLogin
  • Returns WepinLogin

Methods

  • change language

    Parameters

    • language: string

      string <'ko' | 'en' | 'ja'> - The language to be displayed on the widget.

    Returns void

    void

  • Returns void

  • generate pin block for authentication

    Parameters

    • count: number = 1

      pin block count

    Returns Promise<AuthPinBlock>

  • Initialize Wepin Object. It returns widget instance.

    Parameters

    • attributes: IWepinSDKAttributes = ...

    Returns Promise<void>

  • checks WepinPin is initialized.

    Returns boolean

    true if Wepin SDK is already initialized.