naystack
Version:
A stack built with tight Next + Drizzle + GraphQL
21 lines (18 loc) • 658 B
TypeScript
import { NextRequest, NextResponse } from 'next/server';
import { InitRoutesOptions } from './types.js';
import '../types.js';
declare function massageRequest(req: NextRequest, options: InitRoutesOptions): Promise<{
error?: NextResponse;
data?: {
email: string;
password: string;
} & {
[key: string]: unknown;
};
}>;
declare function verifyCaptcha(token: string, secret?: string): Promise<boolean>;
declare const getUserContext: (refreshKey: string, signingKey: string, req: NextRequest) => {
refreshUserID?: number;
accessUserId?: number;
} | null;
export { getUserContext, massageRequest, verifyCaptcha };