Vuex Tambahkan beberapa muatan ke mutasi

// call
store.commit('authenticate', {
    token,
    expiration,
});

// mutation
mutations: {
    authenticate(state, { token, expiration }) {
        localStorage.setItem('token', token);
        localStorage.setItem('expiration', expiration);
    }
}
Clever Crane