Files
vibn-frontend/app/auth/supertokens-page.tsx
Mark Henderson 6764c1feb0 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>
2026-02-16 15:27:40 -08:00

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>
);
}