chainType select supported chains for dapps
cleanWalletCache to clean wallet cache. Enable this option to force open Connect Wallet popup since the wallet cache is disabled.
disableCloseButton to disable close button,
so the popup won't be able to be closed manually until user completes the onboarding flow.
Enable forceConnectWallet to force connecting wallet regardless the wallet is connected or not.
globalContext provide window context. Sometimes you need to directly pass window when init A8Connect.
initAppFlow select the initial onboarding flow, default will be Login/Connect Flow.
networkType select supported cluster for dapps
withCredential replace current jwt credential. Usually useful for LOST_WALLET_FLOW flow.
onAuth callback will be triggered when user is authenticated during the onboarding flow.
onClose callback will be triggered when user complete onboarding flow or close the A8Connect popup.
onConnected callback will be triggered when user connect to a wallet during the onboarding flow.
onDisconnected callback will be triggered when user disconnected the wallet during the onboarding flow. Currently, only Lost Wallet flow emits this event.
onError callback will be triggered when errors occur during the onboarding flow.
onLoggedOut callback will be triggered when user logged out from the current session during the onboarding flow.
Generated using TypeDoc
A8Connect init explanations