From 48832c85fde2b1e510564af6db3655f617ffdffd Mon Sep 17 00:00:00 2001 From: "ankitatripathi.mp@gmail.com" Date: Wed, 15 Jul 2026 18:59:41 +0530 Subject: [PATCH 1/2] docs: update v6 migration guide with federatedConnectionsTokensets and federated_connections_access_tokens breaking changes --- v6_MIGRATION_GUIDE.md | 52 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/v6_MIGRATION_GUIDE.md b/v6_MIGRATION_GUIDE.md index 30d5944c44..cb8f4d38f0 100644 --- a/v6_MIGRATION_GUIDE.md +++ b/v6_MIGRATION_GUIDE.md @@ -6,10 +6,12 @@ A guide to migrating the Auth0 Node.js SDK from `5.x` to `6.x`. - [Breaking changes](#breaking-changes) - [ConnectionAttributeIdentifier replaced with identifier-specific types](#connectionattributeidentifier-replaced-with-identifier-specific-types) - [PhoneProviderProtectionBackoffStrategyEnum value change](#phoneproviderprotectionbackoffstrategyenum-value-change) + - [users.federatedConnectionsTokensets removed](#usersfederatedconnectionstokensets-removed) + - [federated_connections_access_tokens removed from UpdateConnectionOptions](#federated_connections_access_tokens-removed-from-updateconnectionoptions) ## Overall changes -V6 is a focused release that addresses type correctness for database connection attribute identifiers and aligns the phone provider backoff strategy enum with the updated API. There are no changes to the Authentication API — any code written for the Authentication API in `5.x` will continue to work in `6.x`. +V6 addresses type correctness for database connection attribute identifiers, aligns the phone provider backoff strategy enum with the updated API, and removes the federated connections tokensets user sub-client. There are no changes to the Authentication API — any code written for the Authentication API in `5.x` will continue to work in `6.x`. ## Breaking changes @@ -84,3 +86,51 @@ const strategy = Management.PhoneProviderProtectionBackoffStrategyEnum.Default; ``` If you were passing this value directly as a string `"none"`, update it to `"default"` to match the updated API. + +--- + +### users.federatedConnectionsTokensets removed + +The `client.users.federatedConnectionsTokensets` sub-client has been removed. This includes the `list()` and `delete()` methods. + +**Before (v5):** + +```ts +// List active federated connection tokensets for a user +const tokensets = await client.users.federatedConnectionsTokensets.list("user_id"); + +// Delete a tokenset +await client.users.federatedConnectionsTokensets.delete("user_id", "tokenset_id"); +``` + +**After (v6):** + +These methods are no longer available. Remove any calls to `client.users.federatedConnectionsTokensets` from your code. + +--- + +### federated_connections_access_tokens removed from UpdateConnectionOptions + +The `federated_connections_access_tokens` field has been removed from `UpdateConnectionOptions`. If you were setting this field when updating a connection, remove it from your update payload. + +**Before (v5):** + +```ts +await client.connections.update("connection_id", { + options: { + federated_connections_access_tokens: { ... }, + // other options + }, +}); +``` + +**After (v6):** + +```ts +await client.connections.update("connection_id", { + options: { + // remove federated_connections_access_tokens + // other options + }, +}); +``` From a503cf7f47b1cb61e93361f6b43d045a03dafcc7 Mon Sep 17 00:00:00 2001 From: "ankitatripathi.mp@gmail.com" Date: Wed, 15 Jul 2026 19:15:31 +0530 Subject: [PATCH 2/2] docs: fix federated_connections_access_tokens removal to cover both create and update connection options --- v6_MIGRATION_GUIDE.md | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/v6_MIGRATION_GUIDE.md b/v6_MIGRATION_GUIDE.md index cb8f4d38f0..d1eb6bd699 100644 --- a/v6_MIGRATION_GUIDE.md +++ b/v6_MIGRATION_GUIDE.md @@ -7,7 +7,7 @@ A guide to migrating the Auth0 Node.js SDK from `5.x` to `6.x`. - [ConnectionAttributeIdentifier replaced with identifier-specific types](#connectionattributeidentifier-replaced-with-identifier-specific-types) - [PhoneProviderProtectionBackoffStrategyEnum value change](#phoneproviderprotectionbackoffstrategyenum-value-change) - [users.federatedConnectionsTokensets removed](#usersfederatedconnectionstokensets-removed) - - [federated_connections_access_tokens removed from UpdateConnectionOptions](#federated_connections_access_tokens-removed-from-updateconnectionoptions) + - [federated_connections_access_tokens removed from connection options](#federated_connections_access_tokens-removed-from-connection-options) ## Overall changes @@ -109,13 +109,24 @@ These methods are no longer available. Remove any calls to `client.users.federat --- -### federated_connections_access_tokens removed from UpdateConnectionOptions +### federated_connections_access_tokens removed from connection options -The `federated_connections_access_tokens` field has been removed from `UpdateConnectionOptions`. If you were setting this field when updating a connection, remove it from your update payload. +The `federated_connections_access_tokens` field has been removed from all connection option types, including create and update. This affects OIDC, Azure AD, Google Apps, and other connection strategies. Remove it from any create or update payloads. **Before (v5):** ```ts +// On create +await client.connections.create({ + strategy: "oidc", + name: "my-connection", + options: { + federated_connections_access_tokens: { ... }, + // other options + }, +}); + +// On update await client.connections.update("connection_id", { options: { federated_connections_access_tokens: { ... }, @@ -127,6 +138,17 @@ await client.connections.update("connection_id", { **After (v6):** ```ts +// On create +await client.connections.create({ + strategy: "oidc", + name: "my-connection", + options: { + // remove federated_connections_access_tokens + // other options + }, +}); + +// On update await client.connections.update("connection_id", { options: { // remove federated_connections_access_tokens