Skip to main content

Usage

Use it where requestSigningDelegation cannot open a popup, such as React Native. Pass a returnUrl with your app’s custom URL scheme, and read the outcome from the URL the Portal returns to.
Signature

Access and Portal behavior

Signed-in user. The method returns the URL and does not open it. Outside a browser, such as in React Native, the Portal opens returnUrl when the user grants, revokes or declines, with signingDelegation set to granted, revoked, cancelled or error in its query string, plus expiresAt or errorCode. parseSigningDelegationConsentOutcome(url) turns that URL into a SigningDelegationConsentOutcome, or returns null for any other URL. In a browser, the method adds your page’s origin to the URL, and the Portal posts the outcome to the window that opened it instead of opening returnUrl. requestSigningDelegation handles that for you. Without a returnUrl, the Portal closes the page and reports no outcome.
Outside a browser, pass an absolute returnUrl with your app’s custom scheme. For an http or https link outside a WebView, the Portal shows This signing delegation return link is invalid. after it has saved the user’s decision, so the grant changes but your app receives no outcome.

Errors