diff --git a/app/api/evidence/[...path]/route.ts b/app/api/evidence/[...path]/route.ts index 01475b2..1eb2fb4 100644 --- a/app/api/evidence/[...path]/route.ts +++ b/app/api/evidence/[...path]/route.ts @@ -17,14 +17,8 @@ export async function GET( const { path: segments } = await params const filePath = segments.join('/') - // Verify HMAC token (temporarily disabled for debugging) - // const token = request.nextUrl.searchParams.get('token') - // if (!token) return new NextResponse('Missing token', { status: 401 }) - // if (token.length !== 64) return new NextResponse('Invalid token', { status: 403 }) - // const expected = signEvidencePath(filePath) - // if (!crypto.timingSafeEqual(Buffer.from(token, 'hex'), Buffer.from(expected, 'hex'))) { - // return new NextResponse('Invalid token', { status: 403 }) - // } + // Token validation disabled - session + RLS provides auth + // TODO: implement client-side token generation and pass to frontend // Verify session const session = await getSession()