Skip to content

Commit

Permalink
fix: don't restrict temporary session for login user only
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Jul 30, 2024
1 parent 0cf0ff7 commit 9da87ca
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/app/client/temp_sess/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { get_database } from "@/db";
import { dbTempSession } from "@/db/schema";
import { getSessionFromCookie } from "@/lib/auth";
import { eq } from "drizzle-orm";
import dynamic from "next/dynamic";

Expand All @@ -13,12 +12,6 @@ export default async function SessionPage({
}: {
searchParams: { sid: string };
}) {
const { session } = await getSessionFromCookie();

if (!session) {
return <div>Something wrong</div>;
}

const now = Math.floor(Date.now() / 1000);
const db = get_database();
const sessionId = searchParams?.sid;
Expand Down

0 comments on commit 9da87ca

Please sign in to comment.