$ npm i @opensolutions/vue-waves-signer --save
// add to main.js
import VueSigner from '@opensolutions/vue-waves-signer'
// production version
Vue.use(VueSigner)
// debug version
Vue.use(VueSigner, {
debug: true
})
Vue.use(VueSigner, {
node: '<custom node>',
provider: '<custom provider>'
})
// simple login function
methods: {
async login() {
await this.signer
.login()
.then((response) => {
console.log(response)
},
(error) => {
console.log(error)
})
}
}