import initState from "./state";

export default {
    setToken: (state, token) => {
        state.token = token;
    },
    setUserInfo: (state, userInfo) => {
        state.userInfo = userInfo;
    },
    resetState: (state) => {
        for (const key in initState) {
            state[key] = initState[key]
        }
    },
    
}