UNPKG

@web3auth/modal

Version:

Multi chain wallet aggregator for web3Auth

11 lines (8 loc) 370 B
import { Web3AuthContextKey, WalletInitializationError } from '@web3auth/no-modal'; import { inject } from 'vue'; const useWeb3AuthInner = () => { const context = inject(Web3AuthContextKey); if (!context) throw WalletInitializationError.fromCode(1000, "usage of `useWeb3Auth` not wrapped in `Web3AuthProvider`."); return context; }; export { useWeb3AuthInner };