nebula/middleware/notAuthenticated.js

7 lines
162 B
JavaScript
Raw Normal View History

2020-07-03 11:04:25 +08:00
export default function ({ store, redirect }) {
// If the user is authenticated redirect to home page
if (store.state.oauth) {
return redirect('/')
}
}