Customer usage import { AppKit, AppKitAuthed, useAppKit } from "@manyrows/appkit-react";
npm install @manyrows/appkit-reactCustomer usage
import { AppKit, AppKitAuthed, useAppKit } from "@manyrows/appkit-react";
function CustomerApp() {
const { snapshot, logout } = useAppKit();
return (
{JSON.stringify(snapshot?.appData, null, 2)}export default function Page() {
return (
${baseURL}/appkit/assets/appkit.js}
Option A (recommended): AppKitAuthed gate component
Pros
Dead simple for customers.
Doesn’t require them to understand snapshot shape.
Lets you change snapshot internals later without breaking them.
Customer code
Option B: only useAppKit() and customers gate themselves
Pros
Fewer exports.
Very explicit.
Customer code
{useAppKit().isAuthenticated ?