- Install supertokens-auth-react, supertokens-node, supertokens-web-js - Create frontend and backend SuperTokens configuration - Add API route handler for auth endpoints - Add SuperTokensProvider wrapper in root layout - Create new auth component with SuperTokens UI - Configure Google and GitHub OAuth providers - Ready for SuperTokens core deployment Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
448 B
TypeScript
19 lines
448 B
TypeScript
"use client";
|
|
|
|
import dynamic from "next/dynamic";
|
|
import { useRouter } from "next/navigation";
|
|
|
|
// Dynamically import to avoid SSR issues
|
|
const SuperTokensComponentNoSSR = dynamic(
|
|
() => import("@/app/components/SuperTokensAuthComponent"),
|
|
{ ssr: false }
|
|
);
|
|
|
|
export default function AuthPage() {
|
|
return (
|
|
<div className="flex min-h-screen items-center justify-center bg-background">
|
|
<SuperTokensComponentNoSSR />
|
|
</div>
|
|
);
|
|
}
|