import type { HttpContext } from '@adonisjs/core/http'; import type { NextFn } from '@adonisjs/core/types/http'; export default class SilentAuthMiddleware { async handle(ctx: HttpContext, next: NextFn) { await ctx.auth.check(); return next(); } }