GenerateComponentTokenInput
Selects the embedded component that needs access and optionally supplies a resource scope.
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
component | ComponentTokenComponent! | Yes | — | Component that selects the server-owned capability allow list |
documentViewer | DocumentViewerComponentTokenScopeInput | No | — | Optional resource scope for the document viewer; exists for forward compatibility but not currently enforced |
signer | SignerComponentTokenScopeInput | No | — | Resource scope for the signer component; specifies which recipient this token is for |
Examples
input: {
component: LS_DOCUMENT_VIEWER
}
input: {
component: LS_SIGNER
signer: {
recipientId: "cmVjMTIzNDU2"
}
}
Or with a session ID:
input: {
component: LS_SIGNER
signer: {
sessionId: "c2VzMTIzNDU2"
}
}
Provide either recipientId or sessionId in the signer scope, but not both.