NuFi developer docs
  • NuFi Wallet
    • Introduction
    • Testnet
    • DApp Connector
    • Branding guidelines
    • Support
  • NUFICONNECT - SINGLE SIGN-ON SDK FOR CARDANO DAPPS
    • Overview
    • Integration instructions
      • Iframe injection
      • Multiple providers
      • Widget options
      • Analytics
      • Migrations
    • Get help
  • METAMASK SNAP - CARDANO WALLET
    • Overview
    • Integration instructions
      • Iframe injection
      • Multiple providers
      • Widget options
      • Analytics
      • Migrations
    • Useful links
    • Get help
Powered by GitBook
On this page
  1. NUFICONNECT - SINGLE SIGN-ON SDK FOR CARDANO DAPPS
  2. Integration instructions

Migrations

Migrating to v0.6.0

The getApi call was deprecated as its synchronous nature lead to calls being ignored if the widget did not have enough time to load.

The properties previously accessed by getApi call are available using following calls:

import nufiCoreSdk from '@nufi/dapp-client-core'

nufiCoreSdk.isMetamaskInstalled
nufiCoreSdk.onSocialLoginInfoChanged
nufiCoreSdk.getSocialLoginInfo

Or are available via getWidgetApi call that returns promise:

import nufiCoreSdk from '@nufi/dapp-client-core'

const widgetApi = await nufiCoreSdk.getWidgetApi()

widgetApi.showWidget
widgetApi.hideWidget
widgetApi.getWidgetVisibilityStatus
widgetApi.signOut
PreviousAnalyticsNextGet help

Last updated 5 months ago