Skip to main content

Usage

Available on the web clients, ParaWeb from @getpara/web-sdk and the client in @getpara/react-sdk and @getpara/react-sdk-lite. React Native has no popup, so use getSigningDelegationConsentUrl there.
Signature

Access and Portal behavior

Signed-in user. appId must be your API key’s project ID. The policy fields must name the active version of a Request that allows signing delegation; otherwise the Portal shows This signing policy is no longer available. Ask the app to start a new request. The method resolves when the Portal reports the user’s decision, or with cancelled when the user closes the popup. It resolves with { status: "error", errorCode: "CONSENT_TIMEOUT" } after timeoutMs, 5 minutes by default. Without the policy fields, the Portal lists the user’s grants to your app, and renewing or revoking there does not close it, so the method resolves with cancelled when the user closes the popup.
Call it from a click handler. The method opens a popup first, and browsers block popups opened at other times.

Errors