mirror of
https://github.com/documenso/documenso.git
synced 2026-07-24 00:43:40 +10:00
feat: resource restriction in presign token (#2150)
This commit is contained in:
@@ -34,7 +34,10 @@ export const updateEmbeddingDocumentRoute = procedure
|
||||
});
|
||||
}
|
||||
|
||||
const apiToken = await verifyEmbeddingPresignToken({ token: presignToken });
|
||||
const apiToken = await verifyEmbeddingPresignToken({
|
||||
token: presignToken,
|
||||
scope: `documentId:${input.documentId}`,
|
||||
});
|
||||
|
||||
const { documentId, title, externalId, recipients, meta } = input;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user