7 lines
150 B
JavaScript
7 lines
150 B
JavaScript
|
export default function ({ store, redirect }) {
|
||
|
// If the user is not authenticated
|
||
|
if (!store.state.oauth) {
|
||
|
return redirect('/login')
|
||
|
}
|
||
|
}
|