"use client"; import { useEffect } from "react"; import Image from "next/image"; import { Wallet } from "@coinbase/onchainkit/wallet"; import { useMiniKit } from "@coinbase/onchainkit/minikit"; // import { useQuickAuth } from "@coinbase/onchainkit/minikit"; import styles from "./page.module.css"; export default function Home() { // If you need to verify the user's identity, you can use the useQuickAuth hook. // This hook will verify the user's signature and return the user's FID. You can update // this to meet your needs. See the /app/api/auth/route.ts file for more details. // Note: If you don't need to verify the user's identity, you can get their FID and other user data // via `useMiniKit().context?.user`. // const { data, isLoading, error } = useQuickAuth<{ // userFid: string; // }>("/api/auth"); const { setMiniAppReady, isMiniAppReady } = useMiniKit(); useEffect(() => { if (!isMiniAppReady) { setMiniAppReady(); } }, [setMiniAppReady, isMiniAppReady]); return (
Sphere

MiniKit

Get started by editing app/page.tsx

Explore Components

); }