UNPKG

840 BTypeScriptView Raw
1/// <reference types="@adonisjs/application/build/adonis-typings/application" />
2import { ApplicationContract } from '@ioc:Adonis/Core/Application';
3/**
4 * Auth provider to register the auth binding
5 */
6export 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}