Skip to content

mera - v0.4.0

Latest

Choose a tag to compare

@mmv08 mmv08 released this 19 Nov 17:18
· 6 commits to main since this release
Immutable release. Only release title and notes can be modified.

Changelog

  • breaking: Rename WebAuthnClient.AllowCredential to WebAuthnClient.CredentialDescriptor, shared by allowCredential and the new excludeCredentials field on WebAuthnClient.CreateCredentialRequest. (#412)
  • Add an optional excludeCredentials list to createPasskeyWithPrfOutput, createSecretVaultWithNewPasskey, and the wagmi connector's connect({ create }), along with the new PASSKEY_EXISTS error code. When excludeCredentials is non-empty and the authenticator already holds one of those passkeys, both the browser and React Native clients reject with PASSKEY_EXISTS instead of creating a duplicate. (#412)
  • Add getCredential() to the mera() wagmi connector, returning the connected account's PasskeyCredentialMetadata while connected (including when wagmi's storage is null) or undefined when disconnected. (#412)
  • Set MeraError.credential to the created passkey's PasskeyCredentialMetadata when createPasskeyWithPrfOutput or createSecretVaultWithNewPasskey fails after the creation ceremony completes (including fallback-assertion, PRF-output, and vault-encryption failures). In the wagmi connector, a UserRejectedRequestError thrown when the fallback prompt is dismissed carries that MeraError as its cause. (#413)