mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
7 lines
161 B
JavaScript
7 lines
161 B
JavaScript
|
export default function ({ store, redirect }) {
|
||
|
// If the user is authenticated redirect to home page
|
||
|
if (store.state.auth) {
|
||
|
return redirect('/')
|
||
|
}
|
||
|
}
|