Nuxt/examples/auth-routes/middleware/auth.js

9 lines
163 B
JavaScript
Raw Normal View History

2017-07-08 16:14:40 +00:00
export default function ({ store, error }) {
2017-02-03 14:09:27 +00:00
if (!store.state.authUser) {
error({
message: 'You are not connected',
statusCode: 403
})
}
}