Skip to content

Version Packages - #53

Merged
Bccorb merged 1 commit into
mainfrom
changeset-release/main
Aug 30, 2026
Merged

Version Packages#53
Bccorb merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@seamless-auth/types@0.16.0

Minor Changes

  • 880e1d5: Publish a union for the WebAuthn error codes.

    WEBAUTHN_ERROR_CODES, WebAuthnErrorCodeSchema and WebAuthnErrorCode cover
    the machine-readable codes the auth API returns as the whole of an error body's
    error field: attachment_not_allowed, synced_passkey_not_allowed,
    authenticator_not_allowed, prf_required and prf_output_not_allowed.

    This mirrors OAUTH_ERROR_CODES and exists for the same reason. A consumer that
    declares its own copy of the list has no way to find out when the API adds a
    code: it degrades to generic messaging and nothing fails anywhere. Checking a
    local map against this union with Record<WebAuthnErrorCode, true> turns that
    silent drift into a compile error.

    The remaining WebAuthn failures answer with prose rather than a code, so they are
    deliberately absent.

    Additive. Nothing changes for a consumer that does not import it.

@github-actions
github-actions Bot requested a review from Bccorb as a code owner August 30, 2026 20:20
@Bccorb
Bccorb merged commit 25975dc into main Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant