"use client"; import { useUser } from "@/hooks/useUser"; import { use } from "react"; import { useMount } from "react-use"; import { Button } from "@/components/ui/button"; import Link from "next/link"; export default function AuthCallback({ searchParams, }: { searchParams: Promise<{ code: string }>; }) { const { code } = use(searchParams); const { loginFromCode } = useUser(); useMount(async () => { if (code) { await loginFromCode(code); } }); return (
🚀
👋
🙌

Login In Progress...

Wait a moment while we log you in with your code.

If you are not redirected automatically, please click the button below:

); }