Repository navigation
Version Packages - #291
Merged
Merged
Version Packages#291
Conversation
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
November 20, 2026 04:12
9072f67 to
88f4fec
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
November 21, 2026 00:30
88f4fec to
9c7fb53
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/core@0.27.0
Minor Changes
193298a: Tighten cross-site request protection when no
allowedOriginslist is configured, and default the auth cookies toSameSite=Lax.Behaviour changes:
allowedOrigins, a state-changing request that isSec-Fetch-Site: same-site, or that carries anOriginand noSec-Fetch-Site(ornone), must come from anOriginwhose host equals the request'sHost. It used to pass, so a page on a sibling subdomain could send a request that carried the session cookie. Asame-siterequest with noOriginis now refused. Refusals answer403 {"error":"cross_site_request_blocked"}. This applies to the auth routes and to therequireAuthand role guards on cookie sessions.Sec-Fetch-Sitevalue the Fetch Metadata spec does not define is treated as cross-site and refused.cookieSameSitenow defaults tolaxwhatevercookieSecuresays. It used to default tononewhen the cookie was secure.checkOriginin core takes a newhostinput. WithoutallowedOrigins, a caller that leaves it out has every request with a non-same-originOriginrefused.Express and Fastify read the host from
req.host, which followsX-Forwarded-Hostonly behind a proxy the framework is told to trust (trust proxy,trustProxy). Next.js reads theHostheader.What to do when upgrading: if your browser app is served from a different host than the adapter, or a proxy in front of the adapter rewrites
Host, setallowedOriginsto the origins your app is served from (or configure the framework to trust the proxy). If your browser app is on a different site from the adapter, setcookieSameSite: "none"(withcookieSecureleft on) to keep the cookie on its requests.c835725: Verify the access token inside a session cookie against the auth API's JWKS in the Express and Fastify guards, and take the session's roles, permissions and organization from it alone.
Behaviour changes:
requireAuthin@seamless-auth/expressand@seamless-auth/fastifynow requiresauthServerUrlandaudience, and throws when it is constructed without them. The types mark both as required. Before, leaving them out gave a cookie-only guard that trusted the cookie's payload, so anyone holdingcookieSecretcould sign a cookie with any identity, roles or permissions. The Next.js guards already worked this way.typ: "access") and refuses the cookie when it does not verify or itssubdiffers from the token's. It also accepts the auth API's access token asAuthorization: Bearer, as it already did when the pair was configured.req.user.roles(andrequest.user.roles) is the verified token'srolesclaim, or[]when the token has none. It no longer falls back to the roles copied into the cookie from the login response.permissions,organizationRoles,organizationPermissionsandorganizationIdcome from the verified token too.What to do when upgrading: pass the same
authServerUrlandaudienceyou givecreateSeamlessAuthServer(or the plugin) to everyrequireAuth, plusauthServerIssuerif you set one there. The guard fetches the auth API's JWKS once and caches it.Patch Changes
refresh_token_reusedclears the cookies without a retry. Needs the auth API release that ships the refresh replay window (fix(sessions): close refresh rotation gaps and add a replay window seamless-auth-api#613).@seamless-auth/express@0.27.0
Minor Changes
193298a: Tighten cross-site request protection when no
allowedOriginslist is configured, and default the auth cookies toSameSite=Lax.Behaviour changes:
allowedOrigins, a state-changing request that isSec-Fetch-Site: same-site, or that carries anOriginand noSec-Fetch-Site(ornone), must come from anOriginwhose host equals the request'sHost. It used to pass, so a page on a sibling subdomain could send a request that carried the session cookie. Asame-siterequest with noOriginis now refused. Refusals answer403 {"error":"cross_site_request_blocked"}. This applies to the auth routes and to therequireAuthand role guards on cookie sessions.Sec-Fetch-Sitevalue the Fetch Metadata spec does not define is treated as cross-site and refused.cookieSameSitenow defaults tolaxwhatevercookieSecuresays. It used to default tononewhen the cookie was secure.checkOriginin core takes a newhostinput. WithoutallowedOrigins, a caller that leaves it out has every request with a non-same-originOriginrefused.Express and Fastify read the host from
req.host, which followsX-Forwarded-Hostonly behind a proxy the framework is told to trust (trust proxy,trustProxy). Next.js reads theHostheader.What to do when upgrading: if your browser app is served from a different host than the adapter, or a proxy in front of the adapter rewrites
Host, setallowedOriginsto the origins your app is served from (or configure the framework to trust the proxy). If your browser app is on a different site from the adapter, setcookieSameSite: "none"(withcookieSecureleft on) to keep the cookie on its requests.c835725: Verify the access token inside a session cookie against the auth API's JWKS in the Express and Fastify guards, and take the session's roles, permissions and organization from it alone.
Behaviour changes:
requireAuthin@seamless-auth/expressand@seamless-auth/fastifynow requiresauthServerUrlandaudience, and throws when it is constructed without them. The types mark both as required. Before, leaving them out gave a cookie-only guard that trusted the cookie's payload, so anyone holdingcookieSecretcould sign a cookie with any identity, roles or permissions. The Next.js guards already worked this way.typ: "access") and refuses the cookie when it does not verify or itssubdiffers from the token's. It also accepts the auth API's access token asAuthorization: Bearer, as it already did when the pair was configured.req.user.roles(andrequest.user.roles) is the verified token'srolesclaim, or[]when the token has none. It no longer falls back to the roles copied into the cookie from the login response.permissions,organizationRoles,organizationPermissionsandorganizationIdcome from the verified token too.What to do when upgrading: pass the same
authServerUrlandaudienceyou givecreateSeamlessAuthServer(or the plugin) to everyrequireAuth, plusauthServerIssuerif you set one there. The guard fetches the auth API's JWKS once and caches it.Patch Changes
@seamless-auth/fastify@0.18.0
Minor Changes
193298a: Tighten cross-site request protection when no
allowedOriginslist is configured, and default the auth cookies toSameSite=Lax.Behaviour changes:
allowedOrigins, a state-changing request that isSec-Fetch-Site: same-site, or that carries anOriginand noSec-Fetch-Site(ornone), must come from anOriginwhose host equals the request'sHost. It used to pass, so a page on a sibling subdomain could send a request that carried the session cookie. Asame-siterequest with noOriginis now refused. Refusals answer403 {"error":"cross_site_request_blocked"}. This applies to the auth routes and to therequireAuthand role guards on cookie sessions.Sec-Fetch-Sitevalue the Fetch Metadata spec does not define is treated as cross-site and refused.cookieSameSitenow defaults tolaxwhatevercookieSecuresays. It used to default tononewhen the cookie was secure.checkOriginin core takes a newhostinput. WithoutallowedOrigins, a caller that leaves it out has every request with a non-same-originOriginrefused.Express and Fastify read the host from
req.host, which followsX-Forwarded-Hostonly behind a proxy the framework is told to trust (trust proxy,trustProxy). Next.js reads theHostheader.What to do when upgrading: if your browser app is served from a different host than the adapter, or a proxy in front of the adapter rewrites
Host, setallowedOriginsto the origins your app is served from (or configure the framework to trust the proxy). If your browser app is on a different site from the adapter, setcookieSameSite: "none"(withcookieSecureleft on) to keep the cookie on its requests.c835725: Verify the access token inside a session cookie against the auth API's JWKS in the Express and Fastify guards, and take the session's roles, permissions and organization from it alone.
Behaviour changes:
requireAuthin@seamless-auth/expressand@seamless-auth/fastifynow requiresauthServerUrlandaudience, and throws when it is constructed without them. The types mark both as required. Before, leaving them out gave a cookie-only guard that trusted the cookie's payload, so anyone holdingcookieSecretcould sign a cookie with any identity, roles or permissions. The Next.js guards already worked this way.typ: "access") and refuses the cookie when it does not verify or itssubdiffers from the token's. It also accepts the auth API's access token asAuthorization: Bearer, as it already did when the pair was configured.req.user.roles(andrequest.user.roles) is the verified token'srolesclaim, or[]when the token has none. It no longer falls back to the roles copied into the cookie from the login response.permissions,organizationRoles,organizationPermissionsandorganizationIdcome from the verified token too.What to do when upgrading: pass the same
authServerUrlandaudienceyou givecreateSeamlessAuthServer(or the plugin) to everyrequireAuth, plusauthServerIssuerif you set one there. The guard fetches the auth API's JWKS once and caches it.Patch Changes
@seamless-auth/nextjs@0.11.0
Minor Changes
193298a: Tighten cross-site request protection when no
allowedOriginslist is configured, and default the auth cookies toSameSite=Lax.Behaviour changes:
allowedOrigins, a state-changing request that isSec-Fetch-Site: same-site, or that carries anOriginand noSec-Fetch-Site(ornone), must come from anOriginwhose host equals the request'sHost. It used to pass, so a page on a sibling subdomain could send a request that carried the session cookie. Asame-siterequest with noOriginis now refused. Refusals answer403 {"error":"cross_site_request_blocked"}. This applies to the auth routes and to therequireAuthand role guards on cookie sessions.Sec-Fetch-Sitevalue the Fetch Metadata spec does not define is treated as cross-site and refused.cookieSameSitenow defaults tolaxwhatevercookieSecuresays. It used to default tononewhen the cookie was secure.checkOriginin core takes a newhostinput. WithoutallowedOrigins, a caller that leaves it out has every request with a non-same-originOriginrefused.Express and Fastify read the host from
req.host, which followsX-Forwarded-Hostonly behind a proxy the framework is told to trust (trust proxy,trustProxy). Next.js reads theHostheader.What to do when upgrading: if your browser app is served from a different host than the adapter, or a proxy in front of the adapter rewrites
Host, setallowedOriginsto the origins your app is served from (or configure the framework to trust the proxy). If your browser app is on a different site from the adapter, setcookieSameSite: "none"(withcookieSecureleft on) to keep the cookie on its requests.Patch Changes