export default function ({ redirect, store }) { const isAuthenticated = store.state.auth.user if (!isAuthenticated) { redirect({ name: 'auth' }) } }