UNPKG

naystack

Version:

A stack built with tight Next + Drizzle + GraphQL

15 lines (12 loc) 436 B
import { UserOutput, UserInput, ErrorHandler } from '../types.js'; import 'next/server'; type InitRoutesOptions = { getUser: (email: string) => Promise<UserOutput | undefined>; createUser: (user: UserInput) => Promise<UserOutput | undefined>; onError?: ErrorHandler; signingKey: string; refreshKey: string; turnstileKey?: string; onSignUp: (user: UserOutput) => void; }; export type { InitRoutesOptions };