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

8 lines (5 loc) 154 B
import faunadb from "faunadb" export const faunaClient = new faunadb.Client({ secret: process.env.FAUNA_SERVER_KEY, }) export const q = faunadb.query