Add is beta user
This commit is contained in:
@@ -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">
|
||||
|
15
apps/web/src/app/wait-list/page.tsx
Normal file
15
apps/web/src/app/wait-list/page.tsx
Normal 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>
|
||||
);
|
||||
}
|
@@ -23,6 +23,7 @@ declare module "next-auth" {
|
||||
interface Session extends DefaultSession {
|
||||
user: {
|
||||
id: number;
|
||||
isBetaUser: boolean;
|
||||
// ...other properties
|
||||
// role: UserRole;
|
||||
} & DefaultSession["user"];
|
||||
|
Reference in New Issue
Block a user