signer Matches Credential Id
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")
}Content copied to clipboard
Parameters
signer
The signer to check
credential Id
The credential ID to match (Base64URL-encoded)