export default function({store, redirect}) { const isAuth = store.getters['auth/isAuthenticated'] if (!isAuth) { // navigate later to notAuthenticated page // return redirect('/') return redirect('/notAuthenticated') } }