Add double check in middleware

This commit is contained in:
2021-10-08 14:58:47 +02:00
parent 5b79f6dd1e
commit 340f418eb3

View File

@@ -15,7 +15,8 @@ export default class SilentAuthMiddleware {
* Check if user is logged-in or not. If yes, then `ctx.auth.user` will be * Check if user is logged-in or not. If yes, then `ctx.auth.user` will be
* set to the instance of the currently logged in user. * set to the instance of the currently logged in user.
*/ */
await auth.check() await auth.use('api').check()
await auth.use('web').check()
await next() await next()
} }
} }