creation

fun creation(rpId: String, challenge: String = randomBase64Url(32), userId: String = randomBase64Url(16), userName: String = "alice@example.com", displayName: String = "Alice", excludeCredentialIds: List<String> = emptyList()): String

PublicKeyCredentialCreationOptionsJSON for rpId, requesting a discoverable ES256/RS256 credential. challenge and userId are base64url; the defaults are random (32 and 16 bytes).