Skip to content

Releases: auth0/auth0-tanstack-start-react

v1.0.0-beta.2

v1.0.0-beta.2 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 17 Sep 19:06
fffc4fc
Release v1.0.0-beta.2 (#40)

v1.0.0-beta.1

v1.0.0-beta.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 28 Aug 11:53
fe01e7e

⚠️ BREAKING CHANGES

  • Forwarded proxy headers are no longer trusted by default. X-Forwarded-Host and X-Forwarded-Proto are now read only when you set trustProxy: true on auth0Server() (or AUTH0_TRUST_PROXY=true); the default is false. If your app uses a domain resolver (Multiple Custom Domains) or an appBaseUrl allow-list and runs behind a reverse proxy or load balancer that terminates TLS, set trustProxy: true so login keeps working. Apps that pass a single static appBaseUrl string are not affected and need no change. #29
  • resolveAppBaseUrl() now takes the resolved config object as its first argument, not the appBaseUrl value. If you call this exported helper directly, change resolveAppBaseUrl(config.appBaseUrl, request) to resolveAppBaseUrl(auth0.config, request). The old call shape now throws a clear configuration error. #29
  • Removed display_name from the Organization type. The field was never populated by default, since it is not in the ID token unless an Action adds it, so the type now matches what you actually receive. If you read organization.display_name, remove that access or add the claim through an Action and read it from the claims. #30
  • Removed appState from LoginOptions. The field was never delivered: the login handler always sets appState to { returnTo } itself. If you set appState on a login call, drop it and use returnTo to control where the user lands after login. #31

Fixed

  • fix: forward authorizationParams on login redirects; reserve OIDC Req… #31 (@nandan-bhat)
  • fix: remove unpopulated display_name from Organization #30 (@nandan-bhat)
  • fix: derive the callback redirect_uri from appBaseUr #29 (@nandan-bhat)

v1.0.0-beta.0

v1.0.0-beta.0 Pre-release
Pre-release

Choose a tag to compare

@nandan-bhat nandan-bhat released this 11 Aug 10:55
377570a

The first release of @auth0/auth0-tanstack-start-react, the Auth0 Authentication SDK for [TanStack Start (https://tanstack.com/start) (React) server-rendered Regular Web Applications. It is built on [@auth0/auth0-server-js (https://github.com/auth0/auth0-auth-js) and exposes a tree-shakeable, client/server-split API.

Added

  • Server-side login, callback, and logout backed by an encrypted JWE session cookie, served automatically by auth0Middleware().
  • auth0Server() factory plus server helpers: getSession, getAccessToken, getTokenSet, and createFetcher. Tokens stay on the server and never reach the browser.
  • Router integration: auth0BeforeLoad() and <Auth0Provider> wire the server-resolved auth state into the router with no client-side loading flash.
  • Route protection: requireAuth and requireOrg route guards, and the server-function middleware requireAuthMiddleware, withApiAuth, withApiScopes, withApiOrg, withApiClaimEquals, and withApiClaimIncludes.
  • React hooks and components: useAuth0, useUser, useOrg, useLogin, useLogout, useMfa, and <SignedIn>, <SignedOut>, <HasOrg>, <AuthReady>, <AuthLoading>.
  • Enterprise features: multi-factor authentication (step-up), Organizations (switch and invitation flows), account linking, CIBA back channel authentication, custom token exchange, Token Vault, and passkeys (WebAuthn).
  • Multiple Custom Domains: pass a resolver to domain to serve several custom domains that front the same tenant, with appBaseUrl inferred per request.
  • Configuration: sessionConfiguration for the session cookie and its lifetime, a sessionStore to switch from stateless to stateful sessions, secret as a string or an array for zero-downtime key rotation, and excludedClaims to keep internal OIDC claims out of the SSR HTML.
  • Testing utilities under /testing: a mock router context (createMockAuth0Context), a test provider (Auth0TestProvider), and a mock Auth0 client (createMockAuth0Client).
  • Example apps under examples/: basic-oidc (standard OIDC login) and passkeys (WebAuthn register and login).