UNPKG

alinea

Version:
9 lines (8 loc) 356 B
import type { AuthApi, AuthedContext, RequestContext } from 'alinea/core/Connection'; import type { User } from 'alinea/core/User'; export declare class LocalAuth implements AuthApi { #private; constructor(context: RequestContext, user: Promise<User>); authenticate(): Promise<Response>; verify(request: Request): Promise<AuthedContext>; }