Learn how to integrate Corbado Authentication into your Next.js application.
CorbadoProvider
onLoggedIn
"use client"; import { CorbadoAuth } from "@corbado/react"; import { useRouter } from "next/navigation"; export default function Page() { const router = useRouter(); const onLoggedIn = () => { //post login actions can be performed here. router.push("/profile"); }; return <CorbadoAuth onLoggedIn={onLoggedIn} />; }
Was this page helpful?