publicKeyCredentialCreationOptions

fun publicKeyCredentialCreationOptions(relyingPartyIdentifier: String? = null): Result<String>

Returns the public key credential creation options as a JSON string.

Return

A Result containing the JSON string with the rp.id field set to relyingPartyIdentifier if specified, or the original activation data otherwise.

Parameters

relyingPartyIdentifier

Optional relying party ID. If provided and not blank, overrides the default rp.id in the activation data if present.