Version Packages - #152
Merged
Merged
Version Packages#152
Conversation
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
September 13, 2026 15:43
2bde88b to
47afa29
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
September 13, 2026 15:51
47afa29 to
556e18c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 WebAuthnAPI and
window.locationreached directly. A native binding has none of those, so the pieces thatdiffer 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.
transportoncreateSeamlessAuthClient(andAuthProvider): cookie transport is unchanged;{ mode: 'bearer', tokenStorage }makes the client hold the auth API's own tokens. Every requestcarries
x-seamless-auth-transport: bearer; pre-auth routes carry the ephemeral token that/loginor/registration/registerreturned, kept in memory only; signed-in routes carry theaccess token; the pair a sign-in returns is written through a
TokenStoragePort; a 401 on asigned-in route triggers one
POST /refreshand one retry, with at most one refresh in flightbecause 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 thedirect SimpleWebAuthn calls at the four ceremony sites.
createBrowserPasskeyPort()is thedefault. A port reports an authenticator refusal with
PasskeyCeremonyError, or any error with aDOMException
nameand a stringcode, which the client turns into the same result a browserfailure gave. The PRF helpers no longer depend on SimpleWebAuthn at runtime.
OAuthRedirectPortreplaceswindow.location.assignin the built-in provider buttons.createBrowserOAuthRedirect()is the default; a port that receives the callback itself resolveswith
codeandstate, and the buttons finish the login on the spot.TokenStoragePortwithcreateMemoryTokenStorage().client.authorizedFetch(input, init)anduseAuthorizedFetch(): a fetch for the application'sown 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 tocall routes behind
requireAuth.createAuthSessionaccepts the client options (or a ready-madeclient) and exposes the clientit drives as
session.client.useAuthClient()returns that same instance rather than building asecond one, which bearer transport needs: the client holds the sign-in in flight.
AuthProvidergainstransportandportsprops and exposesclientandportson thecontext.
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/reactwas 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/clientnow carriescreateSeamlessAuthClient,createAuthSession,SessionStoragePortand its implementations,createFetchWithAuth, the error and result types, the PRF helpers, role matching, and the wire type aliases.@seamless-auth/reactdepends on it and re-exports the same public surface it did before, so an application installing@seamless-auth/reactsees 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 WebAuthnAPI and
window.locationreached directly. A native binding has none of those, so the pieces thatdiffer 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.
transportoncreateSeamlessAuthClient(andAuthProvider): cookie transport is unchanged;{ mode: 'bearer', tokenStorage }makes the client hold the auth API's own tokens. Every requestcarries
x-seamless-auth-transport: bearer; pre-auth routes carry the ephemeral token that/loginor/registration/registerreturned, kept in memory only; signed-in routes carry theaccess token; the pair a sign-in returns is written through a
TokenStoragePort; a 401 on asigned-in route triggers one
POST /refreshand one retry, with at most one refresh in flightbecause 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 thedirect SimpleWebAuthn calls at the four ceremony sites.
createBrowserPasskeyPort()is thedefault. A port reports an authenticator refusal with
PasskeyCeremonyError, or any error with aDOMException
nameand a stringcode, which the client turns into the same result a browserfailure gave. The PRF helpers no longer depend on SimpleWebAuthn at runtime.
OAuthRedirectPortreplaceswindow.location.assignin the built-in provider buttons.createBrowserOAuthRedirect()is the default; a port that receives the callback itself resolveswith
codeandstate, and the buttons finish the login on the spot.TokenStoragePortwithcreateMemoryTokenStorage().client.authorizedFetch(input, init)anduseAuthorizedFetch(): a fetch for the application'sown 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 tocall routes behind
requireAuth.createAuthSessionaccepts the client options (or a ready-madeclient) and exposes the clientit drives as
session.client.useAuthClient()returns that same instance rather than building asecond one, which bearer transport needs: the client holds the sign-in in flight.
AuthProvidergainstransportandportsprops and exposesclientandportson thecontext.
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/reactwas 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/clientnow carriescreateSeamlessAuthClient,createAuthSession,SessionStoragePortand its implementations,createFetchWithAuth, the error and result types, the PRF helpers, role matching, and the wire type aliases.@seamless-auth/reactdepends on it and re-exports the same public surface it did before, so an application installing@seamless-auth/reactsees 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/react-native@0.1.0
Minor Changes
280ceee: First release of
@seamless-auth/react-native, the headless React Native binding.An
AuthProviderover the shared session store, always on bearer transport;useAuth,useAuthClient,useLoginMethodsandusePasskeySupport; 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 thecallback's
codeandstate), anddescribeDevicefor passkey metadata. Each port takes itsnative 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
AuthRoutesdoes. The flows,session state, and token custody come from
@seamless-auth/client.Patch Changes