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