stackpress
Version:
Incept is a content management framework.
10 lines (9 loc) • 403 B
TypeScript
import type Request from '@stackpress/ingest/Request';
import type Response from '@stackpress/ingest/Response';
export declare function authorize(req: Request, res: Response): false | {
token: string;
id: string;
secret: string;
};
export declare function unauthorized(res: Response): void;
export declare function validData(assert: Record<string, any>, data: Record<string, any>): boolean;