UNPKG

@getcronit/pylon

Version:

![Pylon cover](https://github.com/user-attachments/assets/c28e49b2-5672-4849-826e-8b2eab0360cc)

11 lines (10 loc) 413 B
import { MiddlewareHandler } from 'hono'; import { Env } from '../../context'; export type AuthRequireChecks = { roles?: string[]; }; export declare const authMiddleware: (checks?: AuthRequireChecks) => MiddlewareHandler<Env>; export declare function requireAuth(checks?: AuthRequireChecks): { <T extends (...args: any[]) => any>(target: Object, propertyKey: string | symbol): void; <T>(fn: T): T; };