configurePasskeyStorage

fun configurePasskeyStorage(relyingPartyId: String = "portalhq.io", relyingPartyOrigins: List<String>, webAuthnHost: String = "https://backup.web.portalhq.io")

Configures the Passkey Storage for the backups.

This function sets up the necessary parameters for using Passkey as a backup method, including the relying party ID, relying party origins, and the WebAuthn host. It also registers the PasskeyStorage adapter with the MPC system.

Parameters

relyingPartyId

The identifier of the relying party. This is typically a domain name or a unique string identifying the service. Defaults to "portalhq.io".

relyingPartyOrigins

A list of allowed origins for the relying party. These origins will be used to validate requests related to passkey management. These should be the website origins.

webAuthnHost

The base URL of the WebAuthn server responsible for handling passkey operations. Defaults to "https://backup.web.portalhq.io".

Throws

if relyingPartyOrigins is empty.