79517175

Date: 2025-03-18 11:09:59
Score: 1.5
Natty:
Report link

Found the answer on another forum. I was not using the auth middleware. To fix it, in my routes file all I had to do was add:

import { middleware } from '#start/kernel'

router.get('/', [HomeController, 'index']).use(middleware.auth())
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: RyanJMP