Function Signature
Description
Configures Passkey (WebAuthn) backup storage. This must be called before using passkeys for backup or recovery operations.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
relyingPartyId | String | Yes | The relying party identifier (domain) |
relyingPartyOrigins | List<String> | Yes | List of allowed origins |
webAuthnHost | String | No | Optional WebAuthn host URL |
Returns
void
Example
Using Your Own Domain
Setup Requirements
Using Portal’s Relying Party (portalhq.io)
- Add
portalhq.ioas a web credential domain in your app - Share your app bundle ID with the Portal team
Using Your Own Domain
- Set up associated domains in your app
- Serve an AASA file from your domain with
webcredentialconfigured - Configure the relying party ID to match your domain
Errors
| Code | Description |
|---|---|
NOT_INITIALIZED | Portal was not initialized |
CONFIGURATION_FAILED | Failed to configure passkey storage |