@happykit/auth-email
Version:
- A `useAuth` hook which returns the current user - An optional `getServerSideAuth` for server-side rendering - HappyAuth is tiny - it adds only 4.6 kB to the first load JS - it adds less than 0.04 kB if you're transitioning from another page - Extremely
6 lines (5 loc) • 406 B
TypeScript
import { NextApiRequest, NextApiResponse } from "next";
import { AuthRouteHandlerOptions } from ".";
export declare type SendConfirmAccountMail = (email: string, link: string) => Promise<void>;
export declare const sendConfirmAccountMailToConsole: SendConfirmAccountMail;
export declare function createSignup(options: AuthRouteHandlerOptions): (req: NextApiRequest, res: NextApiResponse) => Promise<void>;