mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-09 07:03:25 +00:00
10 lines
254 B
TypeScript
10 lines
254 B
TypeScript
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();
|
|
}
|
|
}
|