Preview
Changelog

Every SDK speaks Zitadel, with one documented API

Released in v0.10.0

Every SDK now exports the same names for the same things, and every export has a reference. Every exported type carries the Zitadel prefix, so it no longer collides with your app's types or an auth library's. Each framework SDK also re-exports its UI SDK's widgets and types from ./components, so an app imports everything for its framework from one package.

The Angular and Vue widgets now wait for an async event handler before they navigate, as the React, Solid, Svelte and Qwik widgets already did, so a handler that stores a session finishes before the page leaves.

Security

  • The SDK proxy sends your project secret on a sign-in handoff only when the browser marks the request Sec-Fetch-Site: same-origin, or, from an older browser that sends no such header, when its Origin names your app's host. A page on another site can no longer sign a visitor in as someone else through your proxy.
  • protectedRoutes also matches the percent-decoded path, so /%61dmin is protected like /admin.
  • <zitadel-login> navigates only to an http or https URL, and its sanitiser removes every on* attribute, also from zl-* elements.

Upgrading from 0.9.0

Breaking: the names that carried the alpha codename now say Zitadel, and the exported types gain the prefix. Rename them in your app, or scaffold it again with zitadel setup; zitadel upgrade does not rename them for you.

  • createNextgenMiddleware, nextgenMiddleware, createNextgenHandle, createNextgenOnRequest and createNextgenRequestMiddleware are createZitadelMiddleware, zitadelMiddleware, createZitadelHandle, createZitadelOnRequest and createZitadelRequestMiddleware.
  • NextgenSession is ZitadelAuthSession and NextgenProvider is ZitadelProvider. Every other exported type gains the prefix: AuthResult is ZitadelAuthResult, ClientSession is ZitadelClientSession, SessionStore is ZitadelSessionStore.
  • The nextgenAuth key on event.locals, event.context and Qwik's shared map is zitadelAuth.
  • Nuxt: the module key is zitadel, its variables are NUXT_ZITADEL_* and NUXT_PUBLIC_ZITADEL_*, and runtimeConfig.public.nextgenProxyPath and nextgenApiBase are zitadelProxyPath and zitadelApiBase. An app that keeps an old name fails to build or start instead of losing its protectedRoutes.
  • TanStack Start: @zitadel/sdk-tanstack-start/react is @zitadel/sdk-tanstack-start/components, and handleNextgenRequest is handleZitadelRequest.
  • Angular needs Angular 19 or newer; zitadel setup refuses 17 and 18. The component classes lose their Component suffix, and their inputs are signals: read component.project(), and bind an input in a template or with setInput instead of assigning it. The widget events are callback inputs that take the function itself: replace (flowComplete)="onComplete($event)" with [onFlowComplete]="onComplete", and likewise (flowStep), (flowInput), (flowRedirect), (flowError) and (signout).
  • Vue keeps @flow-complete and @signout, but no longer discards the promise a handler returns, so a handler that returns one by accident now delays the widget's navigation by up to two seconds.
  • <zitadel-login>: a custom-scheme redirect_uri such as myapp://callback now fails instead of navigating, and ZitadelFlowStep holds name, purpose, notice and error, so code that reads step.redirect_url or step.fields no longer compiles.
  • @zitadel/sdk-core: getSession throws a ZitadelRuntimeError with a code instead of a plain Error, and validateOpaqueSessionToken is gone.

The /__nextgen proxy path is unchanged. Every rename is in the release notes on GitHub.

SDKs

Pull requests#3321#3448