Skip to content

Releases: workos/authkit-nextjs

v4.0.1

23 Apr 21:52
26d9a90

Choose a tag to compare

4.0.1 (2026-04-23)

Bug Fixes

  • persist authenticationMethod in sealed session cookie (#410) (a8f7def)

v4.0.0

23 Apr 18:49
d215568

Choose a tag to compare

4.0.0 (2026-04-23)

⚠ BREAKING CHANGES

  • Upgrade @workos-inc/node to v9 (#407)
  • set minimum Node.js version to 22.11.0 (#408)

Miscellaneous Chores

v3.0.1

20 Apr 20:28
8199d35

Choose a tag to compare

3.0.1 (2026-04-20)

Bug Fixes

  • isolate concurrent PKCE flows to prevent cookie clobbering (#403) (3740a83)
  • set PKCE cookie in ensureSignedIn server action flow (#406) (a55bb64)

v3.0.0

25 Mar 20:11
dd7ef55

Choose a tag to compare

3.0.0 (2026-03-25)

⚠ BREAKING CHANGES

  • add OAuth state verification on callback to prevent CSRF attacks (#388)

Features

  • add OAuth state verification on callback to prevent CSRF attacks (#388) (ebef6e7)
  • middleware: add authkitProxy and handleAuthkitProxy aliases for proxy.ts (#384) (4c3f27b)

Bug Fixes

  • actions: catch TokenRefreshError in refreshAccessTokenAction to prevent 500s (#383) (5c46c39)
  • auth: return signInUrl from server actions to avoid CORS errors (#386) (7d52400)
  • harden PKCE/CSRF for v3.0.0 release (#398) (8054829)

v2.17.0

13 Mar 12:57
49ba388

Choose a tag to compare

2.17.0 (2026-03-13)

Features

  • Automatically pass claim nonce for unclaimed environments (#389) (67dfc92)

v2.16.1

13 Mar 03:17
e98ced5

Choose a tag to compare

2.16.1 (2026-03-13)

Bug Fixes

  • make PKCE opt-in to avoid breaking custom middleware proxies (#392) (9e09fcb)

v2.16.0

11 Mar 23:48
f32d508

Choose a tag to compare

2.16.0 (2026-03-11)

Features

  • add PKCE support for OAuth 2.1 compliance (#374) (de01c7f)

Bug Fixes

  • improve compatibility with non-Next.js environments (#378) (734311a)
  • resolve Dependabot security alerts (#380) (519dccf)

v2.15.0

25 Feb 18:29
05ab5f2

Choose a tag to compare

2.15.0 (2026-02-25)

Features

  • Add returnTo option to getSignInUrl and getSignUpUrl functions (#375) (fc75708)

v2.14.0

11 Feb 18:39
f848652

Choose a tag to compare

What's Changed

Full Changelog: v2.13.0...v2.14.0

v2.13.0

07 Jan 17:41
c94c08e

Choose a tag to compare

What's Changed

  • Add context7.json to repo by @nicknisi in #345
  • feat: enable npm Trusted Publishers by @nicknisi in #346
  • feat: add TokenRefreshError with userId and sessionId for debugging by @nicknisi in #349
  • feat: add composable proxy/middleware helpers by @nicknisi in #348
  • fix(tests): move window.location patching and restoration to beforeEach/afterEach by @sundaray in #350
  • fix: avoid calling headers() in middleware context by @nicknisi in #354
  • fix(test): restore document.querySelector mock in afterEach by @sundaray in #356
  • fix(test): restore process.env after each test by @sundaray in #357
  • v2.13.0 by @nicknisi in #358

New Contributors

Full Changelog: v2.12.2...v2.13.0