This repository has been archived on 2021-03-10. You can view files and clone it, but cannot push or open issues or pull requests.
perktree/frontend/src/store/auth.js

31 lines
399 B
JavaScript

/*
* auth.js
* Copyright (C) 2019 pavle <pavle.portic@tilda.center>
*
* Distributed under terms of the BSD-3-Clause license.
*/
const state = {
authStatus: false,
};
const getters = {
authStatus: (state) => state.authStatus,
};
const mutations = {
login() {
state.authStatus = true;
},
logout() {
state.authStatus = false;
},
};
export default {
state,
getters,
mutations,
};