blob: b94a33682080519c0f19c86a8baef194a920a4bf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import config from '../../../dist/config.json';
export const actions = {
async nuxtServerInit({ commit, dispatch }) {
commit('config/set', config);
const cookies = this.$cookies.getAll();
if (!cookies.token) return dispatch('auth/logout');
commit('auth/setToken', cookies.token);
return dispatch('auth/verify');
}
};
|