diff --git a/apps/web/src/app/(internal)/%5F%5Fhtmltopdf/certificate/page.tsx b/apps/web/src/app/(internal)/%5F%5Fhtmltopdf/certificate/page.tsx index 110b0413b..bb47e1708 100644 --- a/apps/web/src/app/(internal)/%5F%5Fhtmltopdf/certificate/page.tsx +++ b/apps/web/src/app/(internal)/%5F%5Fhtmltopdf/certificate/page.tsx @@ -73,6 +73,8 @@ export default async function SigningCertificate({ searchParams }: SigningCertif id: documentId, }).catch(() => null); + const documentAccessToken = document?.documentAccessToken?.token; + if (!document) { return redirect('/'); } @@ -308,7 +310,7 @@ export default async function SigningCertificate({ searchParams }: SigningCertif