Week 48 · 23 – 29 November 2026
The widget login, /u2, closed its last gaps with the classic /u this week and became the login new tenants get. An existing tenant moves with one flag, and a script checks it first. Actions can now refuse a login or a token, run before any login screen, and deliver the tenant's email and text messages. AuthHero can be the service provider in a SAML login, so users can sign in through Okta, Entra ID or ADFS. An outside developer can register an app from an invite link without an account. Several checks became stricter; read Tighter checks before upgrading, because some requests that used to succeed are now refused. Three migrations must run first; all of them only add columns.
The widget login becomes the default
Which login an application uses can now be set per tenant. The new tenant flag flags.universal_login_version sends a tenant's applications to /u2 when it is "2", and to /u when it is "1" or unset. client_metadata.universal_login_version still overrides it per application. Tenants without the flag behave as before, so nothing moves on upgrade. New tenants, whether created by seed (which covers create-authhero projects) or by the multi-tenancy POST /tenants, get "2". The admin UI has a "Login version" select on the application details tab and a "Use the widget login (/u2)" toggle under Feature Flags.
To move an existing tenant, the repository has a login-migration script (pnpm --filter authhero login-migration) that connects through DATABASE_URL with the kysely adapter. count lists tenants with applications still on /u. check lists what a tenant has customised: a theme, custom pages and templates, prompt text and partials, a terms URL, and, given --base-url, whether the widget bundle is served. flip sets the flag, and rollback removes it. Application overrides are never changed, so for a tenant that had no flag or "1" before flip, a rollback sends every application back to the login it used before.
The gaps that kept tenants on /u are closed:
/u2has its own error, invalid-session and change-email pages. Signup redeems the code in pre-signup verification emails, which now link to/u2/signup; links already sent to/u/signupkeep working.- Login screens apply the same social-button rules as
/u:show_as_button: falsehides a connection, and Google is hidden in in-app browsers. - Code fields ask for a numeric keypad and offer one-time-code autofill, and new-password fields let password managers generate one.
- Prompt partials render on the passwordless code, password reset and MFA screens too. A tenant that had already stored partials for the passwordless code screens will now see them; until now the API accepted them and
/u2never showed them. - An application's
client_metadata.tos_uriandpolicy_uriappear as separate "Terms" and "Privacy Policy" links, with the newbranding.terms_urlandbranding.privacy_urlas tenant-wide defaults.termsAndConditionsUrlstill works as the fallback. - The
accounttarget of a form hook now opens the/u2account page, which also works in the middle of a login: it offers a change of email and a Continue button that resumes the login. Such a mid-login grant now ends when its login session expires, on/utoo.
Some pages are now on /u2 whatever login a tenant uses: /continue, the account pages, the invalid-session page and the pre-signup verification link among them. /u2 has to work in every deployment, even one whose tenants are all still on /u.
The widget bundle is now served from /widget/*, and /u/widget/* remains an alias for one release. Without a widgetHandler, /widget/* redirects to /u/widget/*, so a deployment that serves the widget as static files under /u/widget/ needs no change today. Copy the files to /widget/ as well before /u is removed.
Actions can refuse, intercept and deliver
api.access.deny now stops what it denies. In a credentials-exchange action the token request fails with a 400 and no tokens are signed. Before, the execution was logged as cancelled and the tokens were issued anyway. In a post-user-login action the login fails with 403 access_denied and a failed-login log entry. api.idToken.setCustomClaim and api.accessToken.setCustomClaim now reach the tokens of that login, though not those of later refresh-token exchanges. api.redirect.sendUserTo and api.prompt.render remain unsupported in post-login, and each call now records an unsupported_api error instead of vanishing.
A binding on credentials-exchange, post-user-login or pre-user-registration can set metadata.fail_closed: an action that times out or throws then denies the request instead of letting it through. The default is still to fail open. Token requests now run only the actions bound to credentials-exchange. Before, every enabled code action on the tenant also ran there and logged a failure on each token request.
A new pre-screen trigger runs before any universal login screen is shown and again when it is submitted, on /u2 and on the matching /u pages. That covers identifier, password, code, signup, password reset, MFA, consent and the account pages. Screens use Auth0's names (login-id, mfa-otp-challenge, …), and metadata.screens picks which ones a binding sees. An action can continue, redirect with api.redirect.sendUserTo, or refuse with api.access.deny. A failure while rendering lets the screen through unless the binding sets fail_closed; a failure on submit always refuses. It is an AuthHero extension and replaces pre-account-action, added two weeks ago, which is removed: the management API refuses it with a 400, and stored hooks with it are ignored. Reordering a trigger's bindings now keeps each binding's metadata.
The custom-email-provider and custom-phone-provider triggers from Auth0 let an action deliver the tenant's codes, links and other messages through your own system, with event.notification, api.notification.drop and api.notification.retry as in Auth0. Existing Auth0 actions run unchanged, and an email provider named custom sends all mail through the action. Two additions: metadata.message_types limits which messages an action handles, and api.notification.useDefaultProvider() hands one back to the tenant's usual provider. A failed, dropped or timed-out action fails the send; it does not fall back silently. The admin UI has both triggers with starter code and shows which action delivers which messages.
api.users.ensure creates or updates a user standing for a record in another system, in a connection with the new non-login external strategy, and api.user.setLinkedTo links the signing-in user under it. A pre-user-registration action that links to a user who does not exist now registers the user unlinked and logs primary_not_found, instead of failing the registration.
Sign in through a SAML identity provider
Connections with the samlp strategy make AuthHero the SAML service provider, so users can sign in through Okta, Microsoft Entra ID, ADFS or any SAML 2.0 identity provider. The options are Auth0's: signInEndpoint, signingCert or a metadataUrl or metadataXml to read them from, signSAMLRequest, fieldsMap and the rest. The assertion consumer service is POST /login/callback?connection=…, and the service provider metadata is GET /samlp/metadata?connection=…. The admin UI shows both values to hand to the identity provider. Home Realm Discovery routes to SAML connections like any other.
Signatures are checked by a verifier you pass to init({ samlVerifier }).LocalSamlVerifier, from @authhero/saml/local-verifier, runs on Node.js and on Cloudflare Workers with nodejs_compat. The user ID comes from user_id_attribute, then fieldsMap.user_id, then the NameID, as in Auth0. When migrating from Auth0, keep the same setting so that users keep their IDs.
On the identity provider side, AuthHero now accepts AuthnRequests over the HTTP-POST binding its metadata already advertised, whatever namespace prefix they use. With the service provider's certificate in addons.samlp.signingCert, requests must be signed with it. The metadata's entityID is now the issuer the assertions carry; it used to be the service provider's audience.
Developer app invites
An outside developer can now register their own OAuth application through a link, without an account on the tenant. POST /api/v2/client-registration-tokens with a preset (native, spa or regular_web) returns a setup link that opens /u2/self-service/app in the tenant's branding. The preset fixes the application type, the code flow with PKCE, and how the client authenticates. A web app's secret is shown once. POST /api/v2/clients/{id}/registration-ticket returns an edit link, for any application, and revokes the earlier ones. Through these links a developer can change only the name, logo, URLs and contacts, and cannot delete the app. Links last seven days by default and thirty at most. The admin UI has "Invite a developer" on Applications, a list of invites and a Developer Access tab.
Dynamic Client Registration changed with it. A registration may ask for an audience or scope only when its Initial Access Token pins those values; anything else gets 400 invalid_client_metadata, so open registration can no longer request API access. The Management API is never granted this way. A public client no longer receives a secret. Registration accepts application_type, post_logout_redirect_uris and web_origins, and refuses script and data URLs as redirect URIs.
Several database connections per application
When an application enables more than one database connection, password login, signup and password reset now choose between them as Auth0 does. A connection named in the request is used if the application enables it, from /authorize?connection=, the realm of /co/authenticate or the connection field of /dbconnections. These used to accept only Username-Password-Authentication. A name the application does not enable is refused. Without a name, the application's first enabled database connection is used. The "Multiple username-password connections configured" error is gone. The admin UI's Connections tab lists database connections in order, marks the first as the default, and lets you reorder them.
POST /api/v2/users accepts a connection's name or ID, checks email and username within that connection, and answers a duplicate with Auth0's 409 body. PATCH checks a username change the same way; a taken username used to fail with a 500.
Light and dark themes
Themes can carry optional dark values: colors_dark, widget.logo_url_dark, the page background's background_color_dark and background_image_url_dark, and branding.favicon_url_dark. The login page uses an explicit dark value first, then a dark palette derived from the light one, then the light value, all in server-rendered CSS so the page does not flash. The derived palette keeps the tenant's link colour. A theme's widget.logo_url now also takes precedence over branding.logo_url in the page's logo.
The admin UI's branding editor has a simple view with six core colours, a light/dark switch with "Generate dark from light", and contrast warnings. Clearing a field now saves. The preview is rendered by the server, in either scheme, with code, MFA, consent and error screens.
A custom font set as a font file now applies. As in Auth0, branding.font.url is usually a .woff2 or .ttf file, but the page loaded it as a stylesheet, which the browser discarded. A Google Fonts CSS URL still works.
Tighter checks
- Login codes are bound to the address they were sent to, and a login session's earlier codes are retired when its username changes. Codes issued before the upgrade are refused, so users with an open code must request a new one. A signup from an older pre-signup link continues unverified and sends a verification email.
- Only
/u/infoand/u2/infoare always allowed as redirect targets on the auth server itself. Any other path there must be registered in the application's callbacks to be used asredirect_urion/authorizeorredirect_urlon/account. /authorizechecks the response type against the application'sgrant_types, as Auth0 does:codeneedsauthorization_code, and a response withtokenorid_tokenneedsimplicit. An application withoutgrant_typesis not restricted. The default application of each tenant allows the code flow only, so addimplicitto it if it needs tokens from/authorize.- Scopes requested for the Management API are resolved against the user's permissions in every case, even when its RBAC setting is off. Other APIs behave as before.
HEADrequests get the same authentication and scope checks asGET./connect/startconsent on a tenant requires the user to holdcreate:clientson the Management API.- The caps on login codes and MFA text messages per login session hold under concurrent requests. Login codes, resends included, are capped at five per login session. A custom adapter keeps the earlier best-effort behaviour unless it implements the new optional
loginSessions.updateIfStateDataUnchanged.
Log streams to Amazon Data Firehose
A firehose log stream sends each audit event to an Amazon Data Firehose delivery stream in Auth0's log stream format, configured per tenant in the admin UI or the management API. It is an AuthHero extension. Its secret key is write-only. Events over Firehose's 1,000 KiB record limit have their details truncated and, if still too large, are skipped and logged as an error.
A webhook stream's http_authorization is now write-only too. The management API no longer returns it, an update that omits it keeps it, and null removes it. A client that read the header back will no longer see it.
Events retried by the outbox cron now reach the Pipelines archive; before, an event whose inline archive delivery failed was marked processed without being archived. An invalid outbox.pipeline setting now fails init() instead of failing requests.
Refresh tokens from Custom Token Exchange
Custom Token Exchange returns a refresh token when the request asks for offline_access, as on Auth0. The refresh token keeps the exchange's audience, scope and organization, and is not tied to a browser session. Exchanged for a session transfer token, it gives a user who came in through Custom Token Exchange a browser session without a login page. This shipped in authhero 9.43.0.
Migrations
Three migrations, each adding nullable columns, so they are safe to run ahead of the code:
- App invites —
client_registration_tokensgainsname,created_byandsource(drizzle0023_client_registration_token_invites). - Dark themes — dark colour, logo and background columns on
themes, andfavicon_url_darkonbranding(drizzle0024_theme_dark). - Legal links —
terms_urlandprivacy_urlonbranding(drizzle0025_branding_legal_links).
kysely ships the same three, and DynamoDB needs none. A custom adapter must implement clientRegistrationTokens.list.
Also
- SQLite — every signup on better-sqlite3 failed with a 500, because creating a user opened a transaction inside a transaction. Nested writes now join the open transaction. D1 was not affected.
- Connections —
show_as_buttonandis_domain_connectionround-trip as booleans. drizzle returned them as0/1and dropped them on update, and kysely failed to insert them on SQLite. - Login page —
/u2pages now render in standards mode, so a form taller than the screen scrolls properly. Text, URL and number fields use floating labels. The first click on the main button submits as soon as the required fields are filled, the resend button sends a new code or link, and the change-of-email confirmation shows without JavaScript. - Embedded login — password login through
/co/authenticateworks for applications that have no database connection enabled; it was refused with403 Invalid realm. - Secrets — provider-issued credentials (client and connection secrets, API keys, tokens) are trimmed of surrounding whitespace when written through the management API. Values you choose yourself, such as SMTP passwords, are stored as sent.
- DynamoDB — tenant flags passed on create are stored, including those from
tenantDefaults. They were dropped. - Cloudflare —
createCloudflareCacheis exported again, for a cache adapter without the custom-domain settings. - Admin UI — text no longer sits low in buttons and inputs; the font is self-hosted with corrected metrics, on the docs site too.
- Documentation — The AuthHero Book, sixteen chapters on authentication and how AuthHero handles it, as web pages, PDF and EPUB. The docs also gained an Actions reference and a Home Realm Discovery page, an overview as the home page, and corrections where pages described features that do not exist.
Released
| Package | Span |
|---|---|
authhero | 9.37.0 → 9.43.0 |
@authhero/adapter-interfaces | 4.32.0 → 4.37.0 |
@authhero/drizzle | 1.23.0 → 1.25.1 |
@authhero/kysely-adapter | 12.23.0 → 12.25.1 |
@authhero/aws-adapter | 1.13.0 → 1.15.1 |
@authhero/cloudflare-adapter | 4.3.2 → 4.3.7 |
@authhero/multi-tenancy | 15.13.2 → 15.14.0 |
@authhero/proxy | 0.11.19 → 0.11.24 |
@authhero/saml | 0.6.12 → 0.7.0 |
@authhero/widget | 0.41.16 → 0.43.2 |
@authhero/admin | 0.32.0 → 0.36.0 |
No package is new this week. create-authhero 0.53.1, which copies the widget to /widget/ in new projects, was versioned but is not on npm: the registry refused to publish it, so create-authhero is still at 0.53.0.