Add is beta user

This commit is contained in:
KMKoushik
2024-04-30 09:11:43 +10:00
parent fbf2d959d5
commit 218ead25ab
5 changed files with 23 additions and 0 deletions

View File

@@ -49,6 +49,10 @@ export default async function AuthenticatedDashboardLayout({
redirect("/");
}
if (!session.user.isBetaUser) {
redirect("/wait-list");
}
return (
<NextAuthProvider session={session}>
<div className="flex min-h-screen w-full h-full">

View File

@@ -0,0 +1,15 @@
import { Rocket } from "lucide-react";
export default async function Home() {
return (
<div className="flex items-center justify-center min-h-screen ">
<div className="p-8 shadow-lg rounded-lg flex flex-col gap-4">
<Rocket />
<h1 className="text-2xl font-bold">You're on the Waitlist!</h1>
<p className=" text-secondary-muted">
Hang tight, we'll get to you as soon as possible.
</p>
</div>
</div>
);
}

View File

@@ -23,6 +23,7 @@ declare module "next-auth" {
interface Session extends DefaultSession {
user: {
id: number;
isBetaUser: boolean;
// ...other properties
// role: UserRole;
} & DefaultSession["user"];