def METHOD_NAME(user, *, rp_id):
    return [
        (
            base64url_to_bytes(credential.public_key),
            credential.sign_count,
        )
        for credential in user.webauthn
    ]