@@ -43,7 +53,7 @@ export default function SubscriptionPage() {
);
}
- const isProUser = subscription?.status === "active" &&
+ const isProUser = subscription?.status === "active" &&
/\b(pro|enterprise)\b/i.test(subscription.productName);
// TODO: Replace with actual Polar product ID
diff --git a/src/app/forgot-password/page.tsx b/src/app/forgot-password/page.tsx
new file mode 100644
index 00000000..e3648635
--- /dev/null
+++ b/src/app/forgot-password/page.tsx
@@ -0,0 +1,32 @@
+import { ForgotPasswordForm } from "@/components/auth/forgot-password-form";
+import Link from "next/link";
+
+export default function ForgotPasswordPage() {
+ return (
+
+
+
+
+ Reset your password
+
+
+ Enter your email address and we'll send you a link to reset your password.
+
+
+
+
+
+
+
+
+
+ Back to Sign In
+
+
+
+
+ );
+}
diff --git a/src/app/handler/[...stack]/page.tsx b/src/app/handler/[...stack]/page.tsx
deleted file mode 100644
index fa125291..00000000
--- a/src/app/handler/[...stack]/page.tsx
+++ /dev/null
@@ -1,9 +0,0 @@
-import { StackHandler, StackServerApp } from "@stackframe/stack";
-
-const stackServerApp = new StackServerApp({
- tokenStore: "nextjs-cookie",
-});
-
-export default function Handler(props: unknown) {
- return
;
-}
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 6ca3984c..94fe80e4 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -1,12 +1,11 @@
import type { Metadata } from "next";
import { ThemeProvider } from "next-themes";
import Script from "next/script";
-import { StackProvider, StackTheme, StackServerApp } from "@stackframe/stack";
-
import { Toaster } from "@/components/ui/sonner";
import { WebVitalsReporter } from "@/components/web-vitals-reporter";
import { ConvexClientProvider } from "@/components/convex-provider";
import { SpeedInsights } from "@vercel/speed-insights/next";
+import { VerificationWarning } from "@/components/auth/verification-warning";
import "./globals.css";
export const metadata: Metadata = {
@@ -58,16 +57,7 @@ export const metadata: Metadata = {
},
};
-const stackServerApp = new StackServerApp({
- tokenStore: "nextjs-cookie",
- urls: {
- // Keep handler routes as fallback for direct URL access
- signIn: "/handler/sign-in",
- signUp: "/handler/sign-up",
- afterSignIn: "/",
- afterSignUp: "/",
- },
-});
+
export default function RootLayout({
children,
@@ -103,22 +93,19 @@ export default function RootLayout({
/>
-
-
-
-
-
-
- {children}
-
-
-
-
+
+
+
+
+
+ {children}
+
+