Nuxt/examples/auth-routes/middleware/auth.js
Sébastien Chopin a0c4709777 Fix typo
2017-07-08 18:14:40 +02:00

9 lines
163 B
JavaScript

export default function ({ store, error }) {
if (!store.state.authUser) {
error({
message: 'You are not connected',
statusCode: 403
})
}
}