An open API service indexing awesome lists of open source software.

https://github.com/thesmartnik/devise-web3-vue


https://github.com/thesmartnik/devise-web3-vue

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# devise-web3-vue
A Vue component for Web3 wallet authentication with `devise` and [devise-web3](https://github.com/TheSmartnik/devise-web3)

## Installation
```
npm install devise-web3-vue
```
or
```
yarn add devise-web3-vue
```

## Usage
1. Import component
```js
import { ConnectWallet } from 'devise-web3-vue'
import 'devise-web3-vue/style.css'
```

2. Create 3 functions

`getNonce` -- function that fetches nonce through API

`onSign` -- function that posts credentials through API

`onLogin` -- any effects after login

3. Use component
```vue

```
## License
MIT