1 | import type { HttpContext } from '@adonisjs/core/http';
|
2 | import type { NextFn } from '@adonisjs/core/types/http';
|
3 | import type { Authenticator } from '../authenticator.js';
|
4 | import type { Authenticators, GuardFactory } from '../types.js';
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | export default class InitializeAuthMiddleware {
|
13 | handle(ctx: HttpContext, next: NextFn): Promise<any>;
|
14 | }
|
15 | declare module '@adonisjs/core/http' {
|
16 | interface HttpContext {
|
17 | auth: Authenticator<Authenticators extends Record<string, GuardFactory> ? Authenticators : never>;
|
18 | }
|
19 | }
|