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