mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-03 23:36:21 +02:00
31 lines
840 B
TypeScript
31 lines
840 B
TypeScript
/// <reference types="@adonisjs/application/build/adonis-typings/application" />
|
|
import { ApplicationContract } from '@ioc:Adonis/Core/Application';
|
|
/**
|
|
* Auth provider to register the auth binding
|
|
*/
|
|
export default class AuthProvider {
|
|
protected application: ApplicationContract;
|
|
constructor(application: ApplicationContract);
|
|
static needsApplication: boolean;
|
|
/**
|
|
* Register auth binding
|
|
*/
|
|
register(): void;
|
|
/**
|
|
* Sharing the auth object with HTTP context
|
|
*/
|
|
protected registerAuthWithHttpContext(): void;
|
|
/**
|
|
* Sharing auth with all the templates
|
|
*/
|
|
protected shareAuthWithViews(): void;
|
|
/**
|
|
* Register test bindings
|
|
*/
|
|
protected registerTestBindings(): void;
|
|
/**
|
|
* Hook into boot to register auth macro
|
|
*/
|
|
boot(): Promise<void>;
|
|
}
|