Add SuperTokens authentication integration

- 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>
This commit is contained in:
2026-02-16 15:27:40 -08:00
parent 8612fe7d5b
commit 6764c1feb0
10 changed files with 698 additions and 24 deletions

View File

@@ -0,0 +1,18 @@
"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>
);
}