guardFactory is not a function
AimForNaN opened this issue · 1 comments
AimForNaN commented
Package version
@adonisjs/auth@9.1.1
Describe the bug
Setting guards to middleware.auth() throws an error.
Code that triggered it:
router.get('/', '#controllers/index_controller.index').use(middleware.auth({
guards: ['web', 'api'],
}));
Error blamed on app/middleware/auth_middleware.ts
line 22.
Reproduction repo
No response
thetutlage commented
Please share complete reproduction. Just with one line of code, I cannot figure out the error.