5 lines
177 B

export default async function({ store }) {
if (!store.getters['auth/isAuthenticated'] || !store.getters['auth/getUsername']) {
await store.dispatch('auth/initAuth')
}
}