0.1.0 • Published 5 years ago
vue-cli-plugin-auth v0.1.0
vue-cli-plugin-auth
Vue CLI plugin for Authentication
Installation
$ vue add auth
Usage
Script
This will create a src/auth.js
file which you can use in your Vue component script as following:
import auth from './auth';
export default {
data() {
return {
auth
}
}
}
and then you can use auth.authenticated
to check whether the user is authorized or not.
Template
You can also use auth.login()
and auth.logout()
to do the described actions.
<a @click="auth.login()" href="#" v-show="!auth.authenticated">Login</a>
<a @click="auth.logout()" href="#" v-show="auth.authenticated">Logout</a>
Contributors
Here is a list of Contributors
TODO
I accept pull requests and guarantee a reply back within a day
License
MIT/X11
Bug Reports
Report here. Guaranteed reply within a day.
Contact
Pavan Kumar Sunkara (pavan.sss1991@gmail.com)
0.1.0
5 years ago
0.1.0-rc.4
5 years ago
0.1.0-rc.3
5 years ago
0.1.0-rc.2
5 years ago
0.1.0-rc.1
5 years ago
0.1.0-rc.0
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago