0.1.3 • Published 7 years ago
auth-me-plug v0.1.3
Auth-Me-Plug
Instalation
You will need to have Vue and Vuex installed, as well as a store where to add the necessary Vuex modules for the components to function. Also, this package uses Axios to comunicate with the server that you might be using to authnticate your users.
Usage
Add the modules server and user to the store, like this:
import Vue from 'vue'
import Vuex from 'vuex'
import users from 'auth-me-plug/modules/users'
import server from 'auth-me-plug/modules/server'
Vue.use(Vuex)
export default new Vuex.Store({
strict: process.env.NODE_ENV !== 'production',
modules: {
users,
server
}
})