signerMatchesCredentialId

Checks if a signer matches a given credential ID string.

Useful for finding a specific passkey signer among a list of signers when working with Base64URL-encoded credential IDs.

Return

true if the signer is a WebAuthn signer with a matching credential ID

Example:

val matchingSigner = signers.find {
SmartAccountBuilders.signerMatchesCredentialId(it, "abc123-def456")
}

Parameters

signer

The signer to check

credentialId

The credential ID to match (Base64URL-encoded)