bright-block-auth
v1.0.21
Published
A Vue.js component implements decentralised login with Blockstack
Downloads
28
Maintainers
Readme
bright-block-auth
A Vue component that shares a (Bulma) navbar item to control blockstack login.
This component is for sharing between brightblock applications but may be helpful for other applications looking to integrate blockstack decentralised login flows!
Installation
npm i bright-block-auth
Browser
Include the script file, then install the component with Vue.use(BrightBlockAuth);
e.g.:
<script type="text/javascript" src="node_modules/vuejs/dist/vue.min.js"></script>
<script type="text/javascript" src="node_modules/brightblock-auth/dist/bright-block-auth.min.js"></script>
<script type="text/javascript">
Vue.use(BrightBlockAuth);
</script>
Module
import BrightBlockAuth from 'bright-block-auth';
Usage
Once installed, it can be used in a template as simply as:
<bright-block-auth></bright-block-auth>