@wharfkit/wallet-plugin-web-authenticator - v4.0.2
    Preparing search index...

    Class WalletPluginWebAuthenticator

    Hierarchy

    • AbstractWalletPlugin
      • WalletPluginWebAuthenticator

    Implements

    • WalletPlugin
    Index
    _data: WalletPluginData
    config: WalletPluginConfig = ...

    The logic configuration for the wallet plugin.

    metadata: WalletPluginMetadata = ...

    The metadata for the wallet plugin to be displayed in the user interface.

    translations: { en: any; ko: any; "zh-Hans": any; "zh-Hant": any } = defaultTranslations

    The translations for this plugin

    • get data(): WalletPluginData

      A method to return the data that needs to persist for the plguin - Used in serialization

      Returns WalletPluginData

    • set data(data: WalletPluginData): void

      A method to return the data that needs to persist for the plguin - Used in serialization

      Parameters

      • data: WalletPluginData

      Returns void

    • Shallow copy with fresh data and metadata; every other field must be safe to share.

      Returns WalletPlugin

    • Performs login by opening the web authenticator in a popup

      Parameters

      • context: LoginContext

      Returns Promise<WalletPluginLoginResponse>

    • Serialize the [[WalletPlugin]] ID and data into a plain object.

      Returns SerializedWalletPlugin

    • Signs a transaction by opening the web authenticator in a popup

      Parameters

      • resolved: ResolvedSigningRequest
      • context: TransactContext

      Returns Promise<WalletPluginSignResponse>