Beta Versions
Certain WorkOS features may be available only in the beta version of the SDK. Beta versions have the-beta.* suffix, for example,
3.2.0-beta.1. For more information on how to use beta
versions, refer to the README in the GitHub repository.
Releases
v10.4.1
Latestv10.4.0...v10.4.1" rel="noreferrer" target="_blank">10.4.1 (2026-06-23)
Bug Fixes
- events: Add resourceTypeSlug to RoleEvent deserialization (https://github.com/workos/workos-node/issues/1638" rel="noreferrer" target="_blank">#1638) (https://github.com/workos/workos-node/commit/d4785958cdaf1ee2d7857022fb4e89ff4e9518b5" rel="noreferrer" target="_blank">d478595)
v10.4.0
v10.3.0...v10.4.0" rel="noreferrer" target="_blank">10.4.0 (2026-06-18)
Features
- user-management: Add invitationToken to getAuthorizationUrl options (https://github.com/workos/workos-node/issues/1612" rel="noreferrer" target="_blank">#1612) (https://github.com/workos/workos-node/commit/a2d516fef5c7cf70aaf69b165f581ffe6dad5360" rel="noreferrer" target="_blank">a2d516f)
v10.3.0
v10.2.1...v10.3.0" rel="noreferrer" target="_blank">10.3.0 (2026-06-17)
Features
- authorization: Add group role assignment endpoints (https://github.com/workos/workos-node/issues/1619" rel="noreferrer" target="_blank">#1619) (https://github.com/workos/workos-node/commit/df60af3ba4fc2ea94fd0a7acd26daef9f56c3781" rel="noreferrer" target="_blank">df60af3)
v10.2.1
v10.2.0...v10.2.1" rel="noreferrer" target="_blank">10.2.1 (2026-06-16)
Bug Fixes
- Prevent handleParseError from double-reading response body (https://github.com/workos/workos-node/issues/1622" rel="noreferrer" target="_blank">#1622) (https://github.com/workos/workos-node/commit/e1cdb7f45f550bc77a28737991b42b9fd2862f06" rel="noreferrer" target="_blank">e1cdb7f)
v10.2.0
v10.1.0...v10.2.0" rel="noreferrer" target="_blank">10.2.0 (2026-06-02)
Features
- authkit: Add Radar challenge completion and error handling (https://github.com/workos/workos-node/issues/1606" rel="noreferrer" target="_blank">#1606) (https://github.com/workos/workos-node/commit/420e739ea062f5f909d0845a25c194d535d3b05d" rel="noreferrer" target="_blank">420e739)
Bug Fixes
- migrate Widgets API to oagen work (https://github.com/workos/workos-node/issues/1605" rel="noreferrer" target="_blank">#1605) (https://github.com/workos/workos-node/commit/19c1de639392ac331823986d15e1117fbe698aa0" rel="noreferrer" target="_blank">19c1de6)
v10.1.0
v10.0.0...v10.1.0" rel="noreferrer" target="_blank">10.1.0 (2026-06-02)
Features
- Add name field to Profile, User, and Actions interfaces (https://github.com/workos/workos-node/issues/1602" rel="noreferrer" target="_blank">#1602) (https://github.com/workos/workos-node/commit/df3ecbd3feadffb9dc9c25a31f5dc55a9e1a5ec2" rel="noreferrer" target="_blank">df3ecbd)
- authkit: Add Radar fields to headless AuthKit methods (https://github.com/workos/workos-node/issues/1603" rel="noreferrer" target="_blank">#1603) (https://github.com/workos/workos-node/commit/4f34f018feb7b66adcff63078d83eeecf67a877e" rel="noreferrer" target="_blank">4f34f01)
Bug Fixes
- connect: Serialize pagination options for auto-pagination (https://github.com/workos/workos-node/issues/1601" rel="noreferrer" target="_blank">#1601) (https://github.com/workos/workos-node/commit/c8333f41ae36e262901b3d0048e44c94a49f2d5a" rel="noreferrer" target="_blank">c8333f4)
v10.0.0
v9.3.1...v10.0.0" rel="noreferrer" target="_blank">10.0.0 (2026-05-27)
⚠ BREAKING CHANGES
- remove search param from listResources (https://github.com/workos/workos-node/issues/1591" rel="noreferrer" target="_blank">#1591)
- groups:
Group.createdAtandGroup.updatedAtnow deserialize asDateobjects - vault:
listObjectsnow returns an auto-paginatable object summary collection instead of the previous list digest shape - vault: generated Vault response types now use SDK-shaped camelCase fields for key and object responses
- webhooks:
Webhooksconstructor signature changed fromconstructor(cryptoProvider: CryptoProvider)toconstructor(workos: WorkOS)(https://github.com/workos/workos-node/issues/1592" rel="noreferrer" target="_blank">#1592)
Features
- Add Radar to Node SDK (https://github.com/workos/workos-node/issues/1596" rel="noreferrer" target="_blank">#1596) (https://github.com/workos/workos-node/commit/6330961da4b1f249f86825ad3eafc8643c275318" rel="noreferrer" target="_blank">6330961)
- connect: Add Connect module (https://github.com/workos/workos-node/issues/1597" rel="noreferrer" target="_blank">#1597) (https://github.com/workos/workos-node/commit/4011dd0b62f7d57e6f4fabb275bdfdc90a0fb7f7" rel="noreferrer" target="_blank">4011dd0)
- groups: Regenerate Groups module via oagen (https://github.com/workos/workos-node/commit/a3c14b31cba51aafad931ee512c6832d14a4f776" rel="noreferrer" target="_blank">a3c14b3)
- remove search param from listResources (https://github.com/workos/workos-node/issues/1591" rel="noreferrer" target="_blank">#1591) (https://github.com/workos/workos-node/commit/9ebc818c908bb4ada660cd6ccefff43c36dec148" rel="noreferrer" target="_blank">9ebc818)
- vault: Add generated Vault serializers and types, including rekey support, object list filters, and delete version checks (https://github.com/workos/workos-node/commit/a3c14b31cba51aafad931ee512c6832d14a4f776" rel="noreferrer" target="_blank">a3c14b3)
- webhooks: Add webhook endpoint CRUD (https://github.com/workos/workos-node/issues/1592" rel="noreferrer" target="_blank">#1592) (https://github.com/workos/workos-node/commit/3b226d71405b55f5eb519b533087902395c3e580" rel="noreferrer" target="_blank">3b226d7)
Bug Fixes
- renovate: explicitly enable minor and patch updates (https://github.com/workos/workos-node/issues/1598" rel="noreferrer" target="_blank">#1598) (https://github.com/workos/workos-node/commit/ad484483f1a1ec3a6c990d778121c663970c38f1" rel="noreferrer" target="_blank">ad48448)
v9.3.1
v9.3.0...v9.3.1" rel="noreferrer" target="_blank">9.3.1 (2026-05-19)
Bug Fixes
- set canonical User-Agent header format (https://github.com/workos/workos-node/issues/1576" rel="noreferrer" target="_blank">#1576) (https://github.com/workos/workos-node/commit/4169434bc9b59d77c3b226292441e8bad0a0df91" rel="noreferrer" target="_blank">4169434)
- webhooks: accept raw request bytes for signature verification (https://github.com/workos/workos-node/issues/1578" rel="noreferrer" target="_blank">#1578) (https://github.com/workos/workos-node/commit/112b261ecbfc68d0ee4912ad78095b1c70cf58b5" rel="noreferrer" target="_blank">112b261)
v9.3.0
v9.2.0...v9.3.0" rel="noreferrer" target="_blank">9.3.0 (2026-05-13)
Features
- Add resource and role_slug filter params to list role assignments (https://github.com/workos/workos-node/issues/1585" rel="noreferrer" target="_blank">#1585) (https://github.com/workos/workos-node/commit/4f32a83c1b490ffe97ecdfb18dadee22061d93c8" rel="noreferrer" target="_blank">4f32a83)
v9.2.0
v9.1.1...v9.2.0" rel="noreferrer" target="_blank">9.2.0 (2026-05-04)
Features
- Add resource role assignments methods (https://github.com/workos/workos-node/issues/1580" rel="noreferrer" target="_blank">#1580) (https://github.com/workos/workos-node/commit/ec8dd0f66e507f4fb9dfe3d13260eb5da7c8ba77" rel="noreferrer" target="_blank">ec8dd0f)
--- This PR was generated with Release Please. See documentation.
v9.1.1
v9.1.0...v9.1.1" rel="noreferrer" target="_blank">9.1.1 (2026-04-24)
Bug Fixes
- Correctly handle all
isAuthenticationErrorDatacases (https://github.com/workos/workos-node/issues/1573" rel="noreferrer" target="_blank">#1573) (https://github.com/workos/workos-node/commit/b572431a9e225a8eb524220b054cef0596c7574b" rel="noreferrer" target="_blank">b572431) - Fix incorrect url for listEffectivePermissionsByExternalId (https://github.com/workos/workos-node/issues/1574" rel="noreferrer" target="_blank">#1574) (https://github.com/workos/workos-node/commit/8f8fc8168f6fcf6109e99938ab36c588c3e9bf62" rel="noreferrer" target="_blank">8f8fc81)
- restore typed data on
AuthenticationErrorData(https://github.com/workos/workos-node/issues/1570" rel="noreferrer" target="_blank">#1570) (https://github.com/workos/workos-node/commit/a7a1e6dee05d9449b4c565906536f67b343d0fd1" rel="noreferrer" target="_blank">a7a1e6d) - revert "Rename Authorization methods to match oagen hints" (https://github.com/workos/workos-node/commit/7ab03806854349928bac91d3f014e37f33cf94cc" rel="noreferrer" target="_blank">7ab0380)
v9.1.0
v9.0.0...v9.1.0" rel="noreferrer" target="_blank">9.1.0 (2026-04-21)
Features
- add support for role_slug in invitation schema (https://github.com/workos/workos-node/issues/1567" rel="noreferrer" target="_blank">#1567) (https://github.com/workos/workos-node/commit/ba29409743619ebb855c06b7c9987114afae61ea" rel="noreferrer" target="_blank">ba29409)
v9.0.0
v8.13.0...v9.0.0" rel="noreferrer" target="_blank">9.0.0 (2026-04-21)
⚠ BREAKING CHANGES
- rename
portaltoadminPortal(https://github.com/workos/workos-node/issues/1562" rel="noreferrer" target="_blank">#1562) - standardize authorization list endpoint pagination (https://github.com/workos/workos-node/issues/1553" rel="noreferrer" target="_blank">#1553)
- Drop Node.js v20 support, require v22.11+ (https://github.com/workos/workos-node/issues/1560" rel="noreferrer" target="_blank">#1560)
- Remove legacy FGA package (https://github.com/workos/workos-node/issues/1559" rel="noreferrer" target="_blank">#1559)
Features
- Add groups endpoints and group event types (https://github.com/workos/workos-node/issues/1564" rel="noreferrer" target="_blank">#1564) (https://github.com/workos/workos-node/commit/cb0c46d74304942146259c4b90778f05fc16df64" rel="noreferrer" target="_blank">cb0c46d)
- adding three new conection types to node SDK connection type enums (https://github.com/workos/workos-node/issues/1389" rel="noreferrer" target="_blank">#1389) (https://github.com/workos/workos-node/commit/c11cfd659f2a151b3e03e7db88feac1fac3a6483" rel="noreferrer" target="_blank">c11cfd6)
- standardize authorization list endpoint pagination (https://github.com/workos/workos-node/issues/1553" rel="noreferrer" target="_blank">#1553) (https://github.com/workos/workos-node/commit/7a91d74146c0b4464aefa0e046c7fc002464a8ee" rel="noreferrer" target="_blank">7a91d74)
- Update Node SDK to include auditlogs.listSchemas (https://github.com/workos/workos-node/issues/1457" rel="noreferrer" target="_blank">#1457) (https://github.com/workos/workos-node/commit/c31736df36c5c933628950e5be38ae542883116c" rel="noreferrer" target="_blank">c31736d)
Bug Fixes
- add JSDoc docstrings from OpenAPI spec to all resource methods (https://github.com/workos/workos-node/issues/1565" rel="noreferrer" target="_blank">#1565) (https://github.com/workos/workos-node/commit/562a57abfbabbb37c037fee53544c47df662cd57" rel="noreferrer" target="_blank">562a57a)
- errors: type server/auth errors and restore type compatibility (https://github.com/workos/workos-node/issues/1561" rel="noreferrer" target="_blank">#1561) (https://github.com/workos/workos-node/commit/e149152e873afd3ef9034c27a4505281bbadca9e" rel="noreferrer" target="_blank">e149152)
- Export
ConflictExceptionand addcode(https://github.com/workos/workos-node/issues/1563" rel="noreferrer" target="_blank">#1563) (https://github.com/workos/workos-node/commit/a5524f8d567ea842297ef780d9fd11f3120ad7ce" rel="noreferrer" target="_blank">a5524f8) - Normalize GithubOAuth to GitHubOAuth in identity deserialization (https://github.com/workos/workos-node/issues/1566" rel="noreferrer" target="_blank">#1566) (https://github.com/workos/workos-node/commit/61f54a544434d7af8ca2e93d742214c6fa776c6e" rel="noreferrer" target="_blank">61f54a5)
- Remove extractVersion from matchUpdateTypes rules (https://github.com/workos/workos-node/issues/1557" rel="noreferrer" target="_blank">#1557) (https://github.com/workos/workos-node/commit/f6272ea85ecf4fa72142a8a046a8df175c180f0a" rel="noreferrer" target="_blank">f6272ea)
- rename
portaltoadminPortal(https://github.com/workos/workos-node/issues/1562" rel="noreferrer" target="_blank">#1562) (https://github.com/workos/workos-node/commit/80614d470ea43d11f76824db4390726fba041002" rel="noreferrer" target="_blank">80614d4)
Code Refactoring
- Drop Node.js v20 support, require v22.11+ (https://github.com/workos/workos-node/issues/1560" rel="noreferrer" target="_blank">#1560) (https://github.com/workos/workos-node/commit/24609a737cb26d159774dd89ffca384cbc6c6723" rel="noreferrer" target="_blank">24609a7)
- Remove legacy FGA package (https://github.com/workos/workos-node/issues/1559" rel="noreferrer" target="_blank">#1559) (https://github.com/workos/workos-node/commit/8cdd668949d0b04e3b3eaf3214153d58ca16b0b1" rel="noreferrer" target="_blank">8cdd668)
Read the https://github.com/workos/workos-node/blob/main/docs/V9_MIGRATION_GUIDE.md" rel="noreferrer" target="_blank">V9_MIGRATION_GUIDE.md for more information.
v8.13.0
v8.12.1...v8.13.0" rel="noreferrer" target="_blank">8.13.0 (2026-04-13)
Features
- Add resource_type_slug to createOrganizationRole to create resource-scoped custom roles (https://github.com/workos/workos-node/issues/1549" rel="noreferrer" target="_blank">#1549) (https://github.com/workos/workos-node/commit/36fb14a81884892ba325a9d8a3f2b8e1c9023b58" rel="noreferrer" target="_blank">36fb14a)
v8.12.1
v8.12.0...v8.12.1" rel="noreferrer" target="_blank">8.12.1 (2026-04-07)
Bug Fixes
- events: handle domain verification failed (https://github.com/workos/workos-node/issues/1543" rel="noreferrer" target="_blank">#1543) (https://github.com/workos/workos-node/commit/0f3f1ceef4a6da35ce3caf434835f0ec0ae2b827" rel="noreferrer" target="_blank">0f3f1ce)
v8.12.0
v8.11.1...v8.12.0" rel="noreferrer" target="_blank">8.12.0 (2026-04-06)
Features
- Add vault.byok_key.verification_completed event interface (https://github.com/workos/workos-node/issues/1544" rel="noreferrer" target="_blank">#1544) (https://github.com/workos/workos-node/commit/5b29d3c0c961ca79b4dde30f8d95821847942c65" rel="noreferrer" target="_blank">5b29d3c)
v8.11.1
v8.11.0...v8.11.1" rel="noreferrer" target="_blank">8.11.1 (2026-04-04)
Bug Fixes
- replace node:events with eventemitter3 in runtime client (https://github.com/workos/workos-node/issues/1540" rel="noreferrer" target="_blank">#1540) (https://github.com/workos/workos-node/commit/e293be1328cecbdee6107d86252341de0f387692" rel="noreferrer" target="_blank">e293be1)
v8.11.0
v8.10.0...v8.11.0" rel="noreferrer" target="_blank">8.11.0 (2026-04-02)
Features
- Adds feature flags runtime client with local evaluation (https://github.com/workos/workos-node/issues/1511" rel="noreferrer" target="_blank">#1511) (https://github.com/workos/workos-node/commit/581c6182bc18384ba9912f681d76acb19d5964a2" rel="noreferrer" target="_blank">581c618)
Bug Fixes
- security: resolve miniflare and undici vulnerabilities (https://github.com/workos/workos-node/issues/1500" rel="noreferrer" target="_blank">#1500) (https://github.com/workos/workos-node/commit/cd6ddd017090786cc7b17b1398b1049201121fce" rel="noreferrer" target="_blank">cd6ddd0)
v8.10.0
v8.9.0...v8.10.0" rel="noreferrer" target="_blank">8.10.0 (2026-03-25)
Features
- add vault events (https://github.com/workos/workos-node/issues/1531" rel="noreferrer" target="_blank">#1531) (https://github.com/workos/workos-node/commit/a5e619f7aa31b5c93054bd5a0eeba37d1f052f52" rel="noreferrer" target="_blank">a5e619f)
Bug Fixes
- correct typecheck issues (https://github.com/workos/workos-node/issues/1526" rel="noreferrer" target="_blank">#1526) (https://github.com/workos/workos-node/commit/5e52f6c72b503873f92b57b941e6b587d6e1c872" rel="noreferrer" target="_blank">5e52f6c)
- CreateAuthorizationResourceOptions type definition (https://github.com/workos/workos-node/issues/1530" rel="noreferrer" target="_blank">#1530) (https://github.com/workos/workos-node/commit/be2ec40abbc57a170b6b20f48d8e01e1258ec8f0" rel="noreferrer" target="_blank">be2ec40)
- events: add missing order parameter to listEvents (https://github.com/workos/workos-node/issues/1524" rel="noreferrer" target="_blank">#1524) (https://github.com/workos/workos-node/commit/2f3dcb4688bae519d114cc573cd5bf8da1bd0fd6" rel="noreferrer" target="_blank">2f3dcb4)
- vault: forward order and before params in listObjects (https://github.com/workos/workos-node/issues/1527" rel="noreferrer" target="_blank">#1527) (https://github.com/workos/workos-node/commit/2f9c2f19c2a31150745c47b504b83d86593a087b" rel="noreferrer" target="_blank">2f9c2f1)
v8.9.0
v8.8.0...v8.9.0" rel="noreferrer" target="_blank">8.9.0 (2026-03-12)
Features
- user-management: add claimNonce to getAuthorizationUrl (https://github.com/workos/workos-node/issues/1518" rel="noreferrer" target="_blank">#1518) (https://github.com/workos/workos-node/commit/19e4a20e7db39a1fb5546229596cfaaa851907c2" rel="noreferrer" target="_blank">19e4a20)
- user-management: add directoryManaged to OrganizationMembership (https://github.com/workos/workos-node/issues/1512" rel="noreferrer" target="_blank">#1512) (https://github.com/workos/workos-node/commit/4594f4e2a871e94d719312bf0500f4d106169ed7" rel="noreferrer" target="_blank">4594f4e)
Bug Fixes
- Bump minimatch from 3.1.2 to 3.1.5 (https://github.com/workos/workos-node/issues/1507" rel="noreferrer" target="_blank">#1507) (https://github.com/workos/workos-node/commit/fe74c3342a0cbd61d265c1ddd5dd02a5a21eb371" rel="noreferrer" target="_blank">fe74c33)
- preserve sso context in authentication event deserialisation (https://github.com/workos/workos-node/issues/1487" rel="noreferrer" target="_blank">#1487) (https://github.com/workos/workos-node/commit/2bad11ca72127677fddfd2ae490a98cb77c53655" rel="noreferrer" target="_blank">2bad11c)
- preserve verification_prefix in organization domain deserialization (https://github.com/workos/workos-node/issues/1486" rel="noreferrer" target="_blank">#1486) (https://github.com/workos/workos-node/commit/640f0e419712755ce0e1f68dd3f441ce1282a75a" rel="noreferrer" target="_blank">640f0e4)
v8.8.0
v8.7.0...v8.8.0" rel="noreferrer" target="_blank">8.8.0 (2026-03-03)
Features
- add missing auth methods (https://github.com/workos/workos-node/issues/1509" rel="noreferrer" target="_blank">#1509) (https://github.com/workos/workos-node/commit/3a5ce41949d09de38a6aa9c919617267c83714a0" rel="noreferrer" target="_blank">3a5ce41)
Bug Fixes
- export CookieSession from package root (https://github.com/workos/workos-node/issues/1504" rel="noreferrer" target="_blank">#1504) (https://github.com/workos/workos-node/commit/29048e992a08f32d353b38f2c53346ca3f39a16e" rel="noreferrer" target="_blank">29048e9)
v8.7.0
v8.6.0...v8.7.0" rel="noreferrer" target="_blank">8.7.0 (2026-02-26)
Features
- add
resourceTypeSlugto permissions, environment and organization roles (https://github.com/workos/workos-node/issues/1502" rel="noreferrer" target="_blank">#1502) (https://github.com/workos/workos-node/commit/74dadc6310412e4f3601d1ba90d3fc2d8fabde0a" rel="noreferrer" target="_blank">74dadc6) - Add deserialisation support for feature flag events (https://github.com/workos/workos-node/issues/1494" rel="noreferrer" target="_blank">#1494) (https://github.com/workos/workos-node/commit/36214248128c1414bebceda634dc39689c296368" rel="noreferrer" target="_blank">3621424)
Bug Fixes
- update release-please manifest to match actual version 8.6.0 (https://github.com/workos/workos-node/issues/1503" rel="noreferrer" target="_blank">#1503) (https://github.com/workos/workos-node/commit/6814a5c75c12bbe02ed7db32ca8eb84c080b5d98" rel="noreferrer" target="_blank">6814a5c)
v8.6.0
- Add BYOK intent to Admin Portal
v8.5.0
What's Changed
- Add dedicated event types for organisation role deserialisation by @smorimoto in #1485
- Version bump to 8.4.1 by @csrbarber in #1489
- chore(deps): update actions/setup-node action to v6 by @renovate[bot] in #1444
- chore(deps): update actions/checkout action to v6 by @renovate[bot] in #1390
- v8.5.0 by @nicknisi in #1493
Full Changelog: v8.4.0...v8.5.0
v8.4.0
v8.3.1
What's Changed
- Rename api_key.deleted event type to api_key.revoked by @smorimoto in #1476
New Contributors
- @smorimoto made their first contribution in #1476
Full Changelog: v8.3.0...v8.3.1
v8.3.0
What's Changed
- Organization role and permission events support by @csrbarber in #1469
Full Changelog: v8.2.0...v8.3.0
v8.2.0
What's Changed
- feat: Add environment role support by @csrbarber in #1454
- feat: Add organization role support by @csrbarber in #1455
- Bump to 8.2.0 by @csrbarber in #1466
Full Changelog: v8.1.0...v8.2.0
v8.1.0
What's Changed
- docs: fix inconsistencies in V8 migration guide by @nicknisi in #1449
- Add custom_attributes field to OrganizationMembership by @ajworkos in #1458
- feat: Add
localeparam to send/resend invitation methods by @jasonbarry in #1460 - fix: exclude organizationId from autoPagination params in listOrganizationFeatureFlags by @gjtorikian in #1461
- Release v8.1.0 by @gjtorikian in #1462
New Contributors
- @jasonbarry made their first contribution in #1460
- @gjtorikian made their first contribution in #1461
Full Changelog: v8.0.0...v8.1.0
v8.0.0
What's Changed
- chore(deps): update jest monorepo by @renovate[bot] in #832
- Release v8.0.0: Universal Runtime Support & API Modernization by @nicknisi in #1370
Breaking Change
This is a breaking change that drops support for Node 16 and Node 18.
:sparkles: _New Features_
_PKCE Authentication for Public Clients_
- API key is now _optional_ - initialize with just
clientIdfor public client apps - New
getAuthorizationUrlWithPKCE()method generates PKCE challenge internally authenticateWithCode()auto-detects client mode (public vs confidential)- New
createWorkOS()factory with compile-time type safety - TypeScript errors if you use server-only methods on public clients - _Use case_: Build mobile apps, desktop apps, SPAs with secure WorkOS auth without exposing API keys
_Universal Runtime Support_
- SDK now works seamlessly across Node.js, Deno, Bun, and Cloudflare Workers
- Runtime-specific exports automatically detected via
package.jsonconditions - Dual build strategy: ESM unbundled (optimal tree-shaking), CJS inlines ESM-only deps
- No more
lib/node_modules/issues that broke Electron packaging
_Better TypeScript Types_
- SSO authorization options now use discriminated unions (must specify exactly one of:
connection,organization, orprovider) - Public vs confidential client types enforced at compile time
- Improved type inference across the board
:fire: _Most Exciting Changes_
- _You can now build mobile/desktop apps with WorkOS_ - PKCE support means no backend proxy needed for client apps
- _Deploy to Cloudflare Workers/edge_ - Full edge runtime support with proper exports
- _Type-safe public clients_ - TypeScript catches security mistakes at compile time
- _Works everywhere_ - Node, Deno, Bun, Workers all tested and verified
:warning: _Breaking Changes_
_Minimum Node.js version: 20+_ (Node 16 and 18 both have reached EOL)
_Removed deprecated methods:_
- Vault:
createSecret()→ usecreateObject() - Vault:
listSecrets()→ uselistObjects() - Vault:
readSecret()→ usereadObject() - Vault:
updateSecret()→ useupdateObject() - Vault:
deleteSecret()→ usedeleteObject() - MFA:
verifyFactor()→ useverifyChallenge() - User Management:
sendMagicAuthCode()→ usesendMagicCode()
_API Changes:_
listOrganizationMemberships()now requiresuserIdORorganizationId- Directory Sync: user fields moved to
customAttributes(e.g.,user.customAttributes?.emails) - SSO: stricter types - must specify one of
connection,organization, orprovider(not multiple) - Organizations: removed
allowProfilesOutsideOrganizationanddomainsfields - Events:
dsync.deactivated→dsync.deleted
_Package structure:_
- Now ESM-first with dual CJS/ESM exports
- Removed internal HTTP/crypto provider classes (public API unchanged)
- _Install_:
npm install @workos-inc/node@8 - _Migration Guide_: https://github.com/workos/workos-node/blob/main/docs/V8_MIGRATION_GUIDE.md" rel="noreferrer" target="_blank">V8_MIGRATION_GUIDE.md
Questions? Hit me up!
Full Changelog: v7.82.0...v8.0.0