---
title: "@auth0/nextjs-auth0 4.33.0 Breaking Changes on npm"
description: "What each @auth0/nextjs-auth0 release removed, renamed or changed: 26 breaking changes in 11 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@auth0/nextjs-auth0
last_updated: 2026-12-04
---

# @auth0/nextjs-auth0 breaking changes

@auth0/nextjs-auth0 4.33.0 (October 22, 2026) is its newest release with breaking changes, 2 of them. The first: Signature changed errors:PasskeyGetTokenError.cause. Every breaking API change we have recorded in @auth0/nextjs-auth0 on npm: 26 breaking changes in 11 versions. Below, its 11 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.33.0`, released October 22, 2026. [Source repository](https://github.com/auth0/nextjs-auth0)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [4.19.0](#v-4-19-0) to [4.33.0](#v-4-33-0): 21 breaking changes in 10 versions.

## @auth0/nextjs-auth0 4.33.0 breaking changes

@auth0/nextjs-auth0 4.33.0, released October 22, 2026: 2 breaking changes.

- **Signature changed** `errors:PasskeyGetTokenError.cause`  

Was readonly cause?: PasskeyApiErrorResponse; now readonly cause?: PasskeyGetTokenApiErrorResponse. [npmjs.com](https://www.npmjs.com/package/@auth0/nextjs-auth0/v/4.33.0)
- **Signature changed** `errors:PasskeyGetTokenError.constructor`  

Was constructor(error: string, error_description: string, cause?: PasskeyApiErrorResponse); now constructor(error: string, error_description: string, cause?: PasskeyGetTokenApiErrorResponse). [npmjs.com](https://www.npmjs.com/package/@auth0/nextjs-auth0/v/4.33.0)

## @auth0/nextjs-auth0 4.32.0 breaking changes

@auth0/nextjs-auth0 4.32.0, released October 13, 2026: 1 breaking change.

- **Behavior changed** `createRouteUrl`  

createRouteUrl now checks that the target is on the same origin to prevent open redirects. Code that builds cross-origin URLs with it will be affected and should use same-origin paths. [github.com](https://github.com/auth0/nextjs-auth0/releases/tag/v4.32.0)

## @auth0/nextjs-auth0 4.31.1 breaking changes

@auth0/nextjs-auth0 4.31.1, released October 7, 2026: 1 breaking change.

- **Removed** `types:AnonymousSession.sessionReplaced`  

AnonymousSession.sessionReplaced was removed in @auth0/nextjs-auth0 4.31.1 [npmjs.com](https://www.npmjs.com/package/@auth0/nextjs-auth0/v/4.31.1)

## @auth0/nextjs-auth0 4.31.0 breaking changes

@auth0/nextjs-auth0 4.31.0, released October 1, 2026: 4 breaking changes.

- **Signature changed** `Auth0Provider`  

Was function Auth0Provider({user, children, profileRoute}: Auth0ProviderProps): React.JSX.Element; now function Auth0Provider({user, anonymousSession, children, profileRoute, anonymousSessionRoute}: Auth0ProviderProps): React.JSX.Element. [npmjs.com](https://www.npmjs.com/package/@auth0/nextjs-auth0/v/4.31.0)
- **Signature changed** `Auth0ProviderProps`  

Was type Auth0ProviderProps = {user?: User; children: React.ReactNode; profileRoute?: string;}; now type Auth0ProviderProps = {user?: User; anonymousSession?: AnonymousSession | null; children: React.ReactNode; profileRoute?: string... [npmjs.com](https://www.npmjs.com/package/@auth0/nextjs-auth0/v/4.31.0)
- **Signature changed** `server:Auth0Client.startInteractiveLogin`  

Was startInteractiveLogin(options?: StartInteractiveLoginOptions): Promise\<NextResponse>; now startInteractiveLogin(options?: StartInteractiveLoginOptions, req?: Request | PagesRouterRequest | NextRequest): Promise\<NextResponse>. [npmjs.com](https://www.npmjs.com/package/@auth0/nextjs-auth0/v/4.31.0)
- **Signature changed** `types:OnCallbackContext`  

Was type OnCallbackContext = {responseType?: RESPONSE_TYPES; appBaseUrl?: string; returnTo?: string; connectedAccount?: CompleteConnectAccountResponse; challengeMode?: "redirect" | "popup";}; now type OnCallbackContext = {responseType?... [npmjs.com](https://www.npmjs.com/package/@auth0/nextjs-auth0/v/4.31.0)

## @auth0/nextjs-auth0 4.29.0 breaking changes

@auth0/nextjs-auth0 4.29.0, released September 4, 2026: 2 breaking changes.

- **Behavior changed**  

The \_\_txn\_\* cookie format changed from bare JWE to {timestamp}:{jwe}. Logins started on one version and completed on the other fail with a state parameter error, so deploy to all pods before accepting new logins or shorten... [github.com](https://github.com/auth0/nextjs-auth0/releases/tag/v4.29.0)
- **Signature changed** `server:TransactionStore.save`  

Was save(resCookies: cookies.ResponseCookies, transactionState: TransactionState, reqCookies?: cookies.RequestCookies): Promise\<void>; now save(resCookies: cookies.ResponseCookies, transactionState: TransactionState, reqCookies?... [npmjs.com](https://www.npmjs.com/package/@auth0/nextjs-auth0/v/4.29.0)

## @auth0/nextjs-auth0 4.24.0 breaking changes

@auth0/nextjs-auth0 4.24.0, released July 1, 2026: 1 breaking change.

- **Signature changed** `types:SessionData.internal`  

Was internal: {sid: string; createdAt: number; mcd?: import("./mcd.js").MCDMetadata;}; now internal: {sid: string; createdAt: number; mcd?: import("./mcd.js").MCDMetadata; sessionExpiresAt?: number;}. [npmjs.com](https://www.npmjs.com/package/@auth0/nextjs-auth0/v/4.24.0)

## Older versions

5 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### @auth0/nextjs-auth0 4.23.0 breaking changes

@auth0/nextjs-auth0 4.23.0, released June 22, 2026: 5 breaking changes.

- **Behavior changed** `passkeyGetToken`  

Token calls such as passkeyGetToken now surface MfaRequiredError where they previously did not. Code that calls these must handle this error. [github.com](https://github.com/auth0/nextjs-auth0/releases/tag/v4.23.0)
- **Signature changed** `server:AbstractSessionStore.constructor`  

Was constructor({secret, rolling, absoluteDuration, inactivityDuration, store, cookieOptions}: SessionStoreOptions); now constructor({secret, rolling, beforeSessionRolled, absoluteDuration, inactivityDuration, store, cookieOptions}... [npmjs.com](https://www.npmjs.com/package/@auth0/nextjs-auth0/v/4.23.0)

And 3 more in this version.

### @auth0/nextjs-auth0 4.22.0 breaking changes

@auth0/nextjs-auth0 4.22.0, released June 1, 2026: 1 breaking change.

- **Signature changed** `types:ProxyOptions`  

Was type ProxyOptions = {proxyPath: string; targetBaseUrl: string; audience: string; scope: string | null;}; now type ProxyOptions = {proxyPath: string; targetBaseUrl: string; audience: string; scope: string | null; forceTokenRefresh?... [npmjs.com](https://www.npmjs.com/package/@auth0/nextjs-auth0/v/4.22.0)

### @auth0/nextjs-auth0 4.21.0 breaking changes

@auth0/nextjs-auth0 4.21.0, released May 22, 2026: 1 breaking change.

- **Signature changed** `types:TransactionState.codeVerifier`  

Was codeVerifier: string; now codeVerifier?: string. [npmjs.com](https://www.npmjs.com/package/@auth0/nextjs-auth0/v/4.21.0)

### @auth0/nextjs-auth0 4.20.0 breaking changes

@auth0/nextjs-auth0 4.20.0, released May 5, 2026: 3 breaking changes.

- **Signature changed** `Auth0Provider`  

Was function Auth0Provider({user, children}: {user?: User; children: React.ReactNode;}): React.JSX.Element; now function Auth0Provider({user, children, profileRoute}: Auth0ProviderProps): React.JSX.Element. [npmjs.com](https://www.npmjs.com/package/@auth0/nextjs-auth0/v/4.20.0)
- **Signature changed** `types:RoutesOptions`  

Was type RoutesOptions = Partial\<Pick\<Routes, "login" | "callback" | "logout" | "backChannelLogout" | "connectAccount">>; now type RoutesOptions = Partial\<Routes>. [npmjs.com](https://www.npmjs.com/package/@auth0/nextjs-auth0/v/4.20.0)

And 1 more in this version.

### @auth0/nextjs-auth0 4.19.0 breaking changes

@auth0/nextjs-auth0 4.19.0, released April 23, 2026: 5 breaking changes.

- **Removed** `types:Routes.mfaEnroll`  

Routes.mfaEnroll was removed in @auth0/nextjs-auth0 4.19.0 [npmjs.com](https://www.npmjs.com/package/@auth0/nextjs-auth0/v/4.19.0)
- **Signature changed** `mfa`  

Was const mfa: MfaClient; now const mfa: ClientMfaClient. [npmjs.com](https://www.npmjs.com/package/@auth0/nextjs-auth0/v/4.19.0)

And 3 more in this version.

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
