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

31 lines (30 loc) 844 B
import { render } from "@testing-library/react"; import { PublicConfig } from ".."; export declare const publicConfig: PublicConfig; declare type P = Parameters<typeof render>; export declare function renderApp(ui: P[0], options?: P[1]): ReturnType<typeof render>; export declare const signedInTokenContentResponse: { data: { value: string; context: { tokenData: { userId: string; provider: string; accountStatus: string; iat: number; exp: number; }; error: null; }; }; }; export declare const signedOutTokenContentResponse: { data: { value: string; context: { tokenData: null; error: null; }; }; }; export * from "@testing-library/react";