Skip to content

Version Packages - #152

Merged
Bccorb merged 1 commit into
mainfrom
changeset-release/main
Sep 13, 2026
Merged

Bccorb merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 13, 2026 •

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/client@0.1.0

Minor Changes

  • 93a35b7: Put the platform behind ports, and add a bearer transport with token custody to the client core.

    The client spoke one contract: cookies to a server adapter at /auth, with the browser's WebAuthn
    API and window.location reached directly. A native binding has none of those, so the pieces that
    differ by platform are now ports a binding supplies, with the browser implementations as the
    defaults. A web application configures nothing and behaves exactly as before.

    • transport on createSeamlessAuthClient (and AuthProvider): cookie transport is unchanged;
      { mode: 'bearer', tokenStorage } makes the client hold the auth API's own tokens. Every request
      carries x-seamless-auth-transport: bearer; pre-auth routes carry the ephemeral token that
      /login or /registration/register returned, kept in memory only; signed-in routes carry the
      access token; the pair a sign-in returns is written through a TokenStoragePort; a 401 on a
      signed-in route triggers one POST /refresh and one retry, with at most one refresh in flight
      because the auth API revokes the chain on a replayed refresh token. Which routes take which
      token is one table, mirroring the server adapter's, rather than an annotation at each of the
      forty call sites.
    • PasskeyPort (isSupported, isPlatformAuthenticatorAvailable, create, get) replaces the
      direct SimpleWebAuthn calls at the four ceremony sites. createBrowserPasskeyPort() is the
      default. A port reports an authenticator refusal with PasskeyCeremonyError, or any error with a
      DOMException name and a string code, which the client turns into the same result a browser
      failure gave. The PRF helpers no longer depend on SimpleWebAuthn at runtime.
    • OAuthRedirectPort replaces window.location.assign in the built-in provider buttons.
      createBrowserOAuthRedirect() is the default; a port that receives the callback itself resolves
      with code and state, and the buttons finish the login on the spot.
    • TokenStoragePort with createMemoryTokenStorage().
    • client.authorizedFetch(input, init) and useAuthorizedFetch(): a fetch for the application's
      own API that carries the session the way the transport does (cookies, or the access token with
      one refresh-and-retry on a 401). A path resolves on apiHost. This is what a native app uses to
      call routes behind requireAuth.
    • createAuthSession accepts the client options (or a ready-made client) and exposes the client
      it drives as session.client. useAuthClient() returns that same instance rather than building a
      second one, which bearer transport needs: the client holds the sign-in in flight.
    • AuthProvider gains transport and ports props and exposes client and ports on the
      context. usePasskeySupport() reads the passkey port.

    Tracks feat(client): extract passkey ceremonies behind a platform port #124, feat(session): async token storage port for native keystores #125, fix(session): single flight refresh to avoid reuse detection logout #127 and feat(oauth): start the provider redirect through a port #128.

  • f8f0dfe: Split the framework-agnostic core into @seamless-auth/client, and make this repository an npm workspace that publishes both packages.

    @seamless-auth/react was one package holding two layers: the headless client, session store, and result types that any binding needs, and the React provider, hooks, and screens on top. A React Native binding is next, and it must share the first layer rather than copy it, since the session state machine is the worst place for two implementations to drift (Adapter framework strategy: extract framework-agnostic client core (deferred) #64).

    @seamless-auth/client now carries createSeamlessAuthClient, createAuthSession, SessionStoragePort and its implementations, createFetchWithAuth, the error and result types, the PRF helpers, role matching, and the wire type aliases. @seamless-auth/react depends on it and re-exports the same public surface it did before, so an application installing @seamless-auth/react sees no change in what it imports or how it behaves.

    Packaging only: no runtime behaviour changes in either package.

@seamless-auth/react@0.13.0

Minor Changes

  • 93a35b7: Put the platform behind ports, and add a bearer transport with token custody to the client core.

    The client spoke one contract: cookies to a server adapter at /auth, with the browser's WebAuthn
    API and window.location reached directly. A native binding has none of those, so the pieces that
    differ by platform are now ports a binding supplies, with the browser implementations as the
    defaults. A web application configures nothing and behaves exactly as before.

    • transport on createSeamlessAuthClient (and AuthProvider): cookie transport is unchanged;
      { mode: 'bearer', tokenStorage } makes the client hold the auth API's own tokens. Every request
      carries x-seamless-auth-transport: bearer; pre-auth routes carry the ephemeral token that
      /login or /registration/register returned, kept in memory only; signed-in routes carry the
      access token; the pair a sign-in returns is written through a TokenStoragePort; a 401 on a
      signed-in route triggers one POST /refresh and one retry, with at most one refresh in flight
      because the auth API revokes the chain on a replayed refresh token. Which routes take which
      token is one table, mirroring the server adapter's, rather than an annotation at each of the
      forty call sites.
    • PasskeyPort (isSupported, isPlatformAuthenticatorAvailable, create, get) replaces the
      direct SimpleWebAuthn calls at the four ceremony sites. createBrowserPasskeyPort() is the
      default. A port reports an authenticator refusal with PasskeyCeremonyError, or any error with a
      DOMException name and a string code, which the client turns into the same result a browser
      failure gave. The PRF helpers no longer depend on SimpleWebAuthn at runtime.
    • OAuthRedirectPort replaces window.location.assign in the built-in provider buttons.
      createBrowserOAuthRedirect() is the default; a port that receives the callback itself resolves
      with code and state, and the buttons finish the login on the spot.
    • TokenStoragePort with createMemoryTokenStorage().
    • client.authorizedFetch(input, init) and useAuthorizedFetch(): a fetch for the application's
      own API that carries the session the way the transport does (cookies, or the access token with
      one refresh-and-retry on a 401). A path resolves on apiHost. This is what a native app uses to
      call routes behind requireAuth.
    • createAuthSession accepts the client options (or a ready-made client) and exposes the client
      it drives as session.client. useAuthClient() returns that same instance rather than building a
      second one, which bearer transport needs: the client holds the sign-in in flight.
    • AuthProvider gains transport and ports props and exposes client and ports on the
      context. usePasskeySupport() reads the passkey port.

    Tracks feat(client): extract passkey ceremonies behind a platform port #124, feat(session): async token storage port for native keystores #125, fix(session): single flight refresh to avoid reuse detection logout #127 and feat(oauth): start the provider redirect through a port #128.

Patch Changes

  • f8f0dfe: Split the framework-agnostic core into @seamless-auth/client, and make this repository an npm workspace that publishes both packages.

    @seamless-auth/react was one package holding two layers: the headless client, session store, and result types that any binding needs, and the React provider, hooks, and screens on top. A React Native binding is next, and it must share the first layer rather than copy it, since the session state machine is the worst place for two implementations to drift (Adapter framework strategy: extract framework-agnostic client core (deferred) #64).

    @seamless-auth/client now carries createSeamlessAuthClient, createAuthSession, SessionStoragePort and its implementations, createFetchWithAuth, the error and result types, the PRF helpers, role matching, and the wire type aliases. @seamless-auth/react depends on it and re-exports the same public surface it did before, so an application installing @seamless-auth/react sees no change in what it imports or how it behaves.

    Packaging only: no runtime behaviour changes in either package.

  • Updated dependencies [93a35b7]

  • Updated dependencies [f8f0dfe]

    • @seamless-auth/client@0.1.0

@seamless-auth/react-native@0.1.0

Minor Changes

  • 280ceee: First release of @seamless-auth/react-native, the headless React Native binding.

    An AuthProvider over the shared session store, always on bearer transport; useAuth,
    useAuthClient, useLoginMethods and usePasskeySupport; and the native ports:
    createSecureStoreTokenStorage (expo-secure-store), createNativePasskeyPort
    (react-native-passkeys, mapping native failures onto the DOMException names the client's error
    readers understand), createWebBrowserOAuthRedirect (expo-web-browser auth session, resolving the
    callback's code and state), and describeDevice for passkey metadata. Each port takes its
    native module as a parameter, so an app installs only what it uses and Metro never resolves a
    module it did not.

    No screens: the app brings its own, the same way a web app that skips AuthRoutes does. The flows,
    session state, and token custody come from @seamless-auth/client.

Patch Changes

  • Updated dependencies [93a35b7]
  • Updated dependencies [f8f0dfe]
    • @seamless-auth/client@0.1.0

@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 2bde88b to 47afa29 Compare September 13, 2026 15:43
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 47afa29 to 556e18c Compare September 13, 2026 15:51
@Bccorb
Bccorb merged commit 3f1d103 into main Sep 13, 2026
@Bccorb
Bccorb deleted the changeset-release/main branch September 13, 2026 15:59
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