@adonisjs/ally
Version:
Social authentication provider for AdonisJS
26 lines (25 loc) • 718 B
TypeScript
import type { ApplicationService } from '@adonisjs/core/types';
import type { AllyService } from '../src/types.ts';
declare module '@adonisjs/core/http' {
interface HttpContext {
ally: AllyService;
}
}
/**
* AllyProvider extends the HTTP context with the "ally" property
*/
export default class AllyProvider {
protected app: ApplicationService;
/**
* Create a new Ally provider instance.
*
* @param app - The AdonisJS application service.
*/
constructor(app: ApplicationService);
/**
* Boot the provider and register the `ctx.ally` getter.
*
* @returns A promise that resolves once the provider has been booted.
*/
boot(): Promise<void>;
}