1 |
|
2 | import { ApplicationContract } from '@ioc:Adonis/Core/Application';
|
3 |
|
4 |
|
5 |
|
6 | export default class AuthProvider {
|
7 | protected application: ApplicationContract;
|
8 | constructor(application: ApplicationContract);
|
9 | static needsApplication: boolean;
|
10 | /**
|
11 | * Register auth binding
|
12 | */
|
13 | register(): void;
|
14 | /**
|
15 | * Sharing the auth object with HTTP context
|
16 | */
|
17 | protected registerAuthWithHttpContext(): void;
|
18 | /**
|
19 | * Sharing auth with all the templates
|
20 | */
|
21 | protected shareAuthWithViews(): void;
|
22 | /**
|
23 | * Register test bindings
|
24 | */
|
25 | protected registerTestBindings(): void;
|
26 | /**
|
27 | * Hook into boot to register auth macro
|
28 | */
|
29 | boot(): Promise<void>;
|
30 | }
|