PasskeyStorage

constructor(apiKey: String, encryption: PortalEncryption = PortalEncryption(PortalMobileMpc()), requests: PortalRequests = PortalRequests(), webAuthnHost: String = "https://backup.web.portalhq.io", preferImmediatelyAvailableCredentials: Boolean = false)

Constructs a new PasskeyStorage instance.

Parameters

apiKey

The API key used for authenticating requests to the backend services.

encryption

An instance of PortalEncryption used for encrypting and decrypting data. Defaults to a new PortalEncryption instance with a PortalMobileMpc.

requests

An instance of PortalRequests for handling HTTP requests. Defaults to a new PortalRequests instance.

webAuthnHost

The base URL of the WebAuthn service host. Defaults to "https://backup.web.portalhq.io".

preferImmediatelyAvailableCredentials

A boolean flag indicating whether to prefer immediately available credentials during authentication. Defaults to false.


constructor(relyingPartyId: String, relyingPartyOrigins: List<String>, webAuthnHost: String = "https://backup.web.portalhq.io", preferImmediatelyAvailableCredentials: Boolean = false)

Deprecated

This is now deprecated since all backup methods are initialized by default now. Please use the `Portal.configurePasskeyStorage()` method.