devise-web3-vue
v1.0.1
Published
A vue button to login with metamask. Assumed to be used with devise-web3 ruby gem
Maintainers
Readme
devise-web3-vue
A Vue component for Web3 wallet authentication with devise and devise-web3
Installation
npm install devise-web3-vueor
yarn add devise-web3-vueUsage
- Import component
import { ConnectWallet } from 'devise-web3-vue'
import 'devise-web3-vue/style.css'- Create 3 functions
getNonce -- function that fetches nonce through API
onSign -- function that posts credentials through API
onLogin -- any effects after login
- Use component
<ConnectWallet :getNonce="getNonce" :onSign="onSign" :onLogin="onLogin"/>License
MIT
