v1.0.0-beta.0
Pre-release
Pre-release
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, andcreateFetcher. 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:
requireAuthandrequireOrgroute guards, and the server-function middlewarerequireAuthMiddleware,withApiAuth,withApiScopes,withApiOrg,withApiClaimEquals, andwithApiClaimIncludes. - 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
domainto serve several custom domains that front the same tenant, withappBaseUrlinferred per request. - Configuration:
sessionConfigurationfor the session cookie and its lifetime, asessionStoreto switch from stateless to stateful sessions,secretas a string or an array for zero-downtime key rotation, andexcludedClaimsto 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) andpasskeys(WebAuthn register and login).