@subwallet-connect/arcana-auth
v1.0.8
Published
Arcana wallet is a built-in, secure Web3 wallet that users can access instantly when logging into an app integrated with the Arcana Auth SDK. It offers a customizable interface that can be branded to match the app's style. Users don't need to generate or
Downloads
9
Readme
@subwallet-connect/arcana-auth
Wallet module for connecting Arcana Wallet SDK to web3-onboard
Web3-Onboard is an open-source, framework-agnostic JavaScript library to onboard users to web3 apps. This package can be used to integrate Arcana Wallet support into Web3-Onboard's "Connect Wallet" modal. With this module, the Arcana wallet option will be shown for any app that integrates with the Arcana Auth SDK and uses it to onboard users. There is no need to download any browser extension. For more information on how to use the Arcana Wallet, please refer to the Arcana Wallet User Guide. Web3 app developers can refer to the Arcana Wallet Developer Docs
Note
To ensure proper functionality of the embedded Arcana wallet in the Arcana Auth SDK, it may be necessary to disable certain other wallets that operate as browser extensions.
Install
npm install @subwallet-connect/core @subwallet-connect/arcana-auth
Usage
import Onboard from '@subwallet-connect/core'
import arcanaAuthModule from '@subwallet-connect/arcana-auth'
// initialize the module
const arcanaAuth = arcanaAuthModule({
clientID: 'xar_test_c9c3bc702eb13255c58dab0e74cfa859711c13cb'
})
const onboard = Onboard({
// ... other Onboard options
wallets: [
arcanaAuth,
//... other wallets
]
})
const connectedWallets = await onboard.connectWallet()
console.log(connectedWallets)