UNPKG

bknd

Version:

Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.

21 lines (20 loc) 729 B
import type { DB, SafeUser } from "../.."; import type { AppAuth } from "../../auth/AppAuth"; import type { Hono } from "hono"; import { Controller, type ServerEnv } from "../../modules/Controller"; export type AuthActionResponse = { success: boolean; action: string; data?: SafeUser; errors?: any; }; export declare class AuthController extends Controller { private auth; constructor(auth: AppAuth); get guard(): import("../authorize/Guard").Guard; get em(): import("../..").EntityManager<DB>; get userRepo(): import("../..").Repository<DB, "users">; private registerStrategyActions; getController(): Hono<ServerEnv, import("hono/types").BlankSchema, "/">; registerMcp(): void; }