getCredentialIdStringFromSigner

Extracts the credential ID from a WebAuthn signer's key data as a Base64URL-encoded string.

Return

Base64URL-encoded credential ID string, or null if the signer is not a WebAuthn signer

Example:

val credentialIdStr = SmartAccountBuilders.getCredentialIdStringFromSigner(signer)
// "abc123-def456_ghi789"

Parameters

signer

The signer to extract the credential ID from