Closed AimForNaN closed 4 months ago
@adonisjs/auth@9.1.1
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.
app/middleware/auth_middleware.ts
No response
Please share complete reproduction. Just with one line of code, I cannot figure out the error.
Package version
@adonisjs/auth@9.1.1
Describe the bug
Setting guards to middleware.auth() throws an error.
Code that triggered it:
Error blamed on
app/middleware/auth_middleware.ts
line 22.Reproduction repo
No response