UNPKG

naystack

Version:

A stack built with tight Next + Drizzle + GraphQL

21 lines (18 loc) 660 B
import { NextRequest, NextResponse } from 'next/server'; import { InitRoutesOptions } from './types.mjs'; import '../types.mjs'; 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 };