Usage
Use it whererequestSigningDelegation 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 opensreturnUrl 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.