mirror of
https://github.com/JetSprow/J-Board-Lite.git
synced 2026-05-01 01:14:10 +05:30
fix: harden secrets and session checks
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import type { Metadata } from "next";
|
||||
import { getActiveSession } from "@/lib/require-auth";
|
||||
import Link from "next/link";
|
||||
import { getServerSession } from "next-auth";
|
||||
import { Film, LifeBuoy, Radio } from "lucide-react";
|
||||
|
||||
import { authOptions } from "@/lib/auth";
|
||||
import { EmptyState, PageShell } from "@/components/shared/page-shell";
|
||||
import { buttonVariants } from "@/components/ui/button";
|
||||
import { PendingOrderBanner } from "./pending-order-banner";
|
||||
@@ -30,7 +29,7 @@ export const metadata: Metadata = {
|
||||
};
|
||||
|
||||
export default async function StorePage() {
|
||||
const session = await getServerSession(authOptions);
|
||||
const session = await getActiveSession();
|
||||
const { plans, availabilityMap, pendingOrder, latencyRecommendations } = await getStorePageData(session?.user.id);
|
||||
const proxyPlans = getProxyPlans(plans);
|
||||
const streamingPlans = getStreamingPlans(plans);
|
||||
|
||||
Reference in New Issue
Block a user