Easy client side authentication for your Vue applications.
npm install @optix/vue-auth --saveimport Vue from 'vue';
import VueAuth from '@optix/vue-auth';
Vue.use(VueAuth);Accessing the auth object:
// Globally
Vue.auth.token();
// On an instance
this.$auth.token();- setToken(token)
- token()
- hasToken()
- removeToken()
- setUser(user)
- user()
- removeUser()
- check()
The MIT License (MIT). Please see License File for more information.