UNPKG

@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

4 lines (3 loc) 243 B
import { NextApiRequest, NextApiResponse } from "next"; import { AuthRouteHandlerOptions } from "."; export declare function createChangePassword(options: AuthRouteHandlerOptions): (req: NextApiRequest, res: NextApiResponse) => Promise<void>;