From 2a93f53cdc1d24ba49c9762ccc4766aa6bde8a86 Mon Sep 17 00:00:00 2001 From: sourabh-josh Date: Mon, 7 Oct 2024 16:27:34 +0530 Subject: [PATCH] refact: public route for transcriptions --- app/src/app/transcriptions/[transcription_id]/page.tsx | 4 +--- app/src/app/transcriptions/page.tsx | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/app/src/app/transcriptions/[transcription_id]/page.tsx b/app/src/app/transcriptions/[transcription_id]/page.tsx index 1fc95e1..fa09f62 100644 --- a/app/src/app/transcriptions/[transcription_id]/page.tsx +++ b/app/src/app/transcriptions/[transcription_id]/page.tsx @@ -23,9 +23,7 @@ interface PageProps { const page = async (props: PageProps) => { const { transcription_id } = props.params; - const { user } = await validateRequest(); - - if (!user) return redirect("/signin"); + // skip user signin validation for now const transcription = await db .select() diff --git a/app/src/app/transcriptions/page.tsx b/app/src/app/transcriptions/page.tsx index a2975e7..9a3eb92 100644 --- a/app/src/app/transcriptions/page.tsx +++ b/app/src/app/transcriptions/page.tsx @@ -18,10 +18,7 @@ export const metadata: Metadata = { const page = async () => { - const {user} = await validateRequest(); - - if (!user) return redirect("/signin"); - + // skip user signin validation for now const userTranscriptions = await db .select({