export default function ({ redirect, store }) { // eslint-disable-next-line no-unneeded-ternary const isAuthenticated = store.state.auth.user ? true : false if (!isAuthenticated) { redirect({ name: 'auth' }) } }