8 lines
175 B
JavaScript
Raw Normal View History

2020-04-29 10:30:35 +02:00
export default async function ({ store, redirect }) {
2020-04-30 10:52:14 +02:00
await store.dispatch('auth/inspectToken')
2020-04-29 10:30:35 +02:00
if (!store.state.auth.isLogin) {
return redirect('/')
}
}