diff --git a/CHANGELOG.md b/CHANGELOG.md index 88975837b..eef0783be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## [v2.41.0](https://github.com/auth0/node-auth0/tree/v2.41.0) (2022-05-20) + +[Full Changelog](https://github.com/auth0/node-auth0/compare/v2.40.0...v2.41.0) + +**Added** + +- Added ClientsManager.rotateClientSecret method [\#721](https://github.com/auth0/node-auth0/pull/721) ([sbmelvin](https://github.com/sbmelvin)) + ## [v2.40.0](https://github.com/auth0/node-auth0/tree/v2.40.0) (2022-02-11) [Full Changelog](https://github.com/auth0/node-auth0/compare/v2.39.0...v2.40.0) diff --git a/docs/ActionsManager.html b/docs/ActionsManager.html index a757690b0..a0705ac2e 100644 --- a/docs/ActionsManager.html +++ b/docs/ActionsManager.html @@ -24,7 +24,7 @@ @@ -4858,7 +4858,7 @@
Rotate a client secret
+Name | + + +Type | + + + + + +Description | +||||||
---|---|---|---|---|---|---|---|---|
params |
+
+
+
+
+
+object
+
+
+
+ |
+
+
+
+
+
+
+ params object + + + +
|
+
Promise
+|
+
+undefined
+
+
+ management.clients.rotateClientSecret({ client_id: CLIENT_ID }, function (err, user) {
+ if (err) {
+ // Handle error.
+ }
+
+ // Client secret rotated.
+});
+
+Get the new universal login template.
+Set the new universal login template.
management.setBrandingUniversalLoginTemplate({ template: "a template" }, function (err, template) {
+ management.setBrandingUniversalLoginTemplate({}, { template: "a template" }, function (err, template) {
if (err) {
// Handle error.
}
@@ -41502,7 +41502,7 @@ Example
diff --git a/docs/ManagementTokenProvider.html b/docs/ManagementTokenProvider.html
index e5bce6a29..0a8b76fa3 100644
--- a/docs/ManagementTokenProvider.html
+++ b/docs/ManagementTokenProvider.html
@@ -24,7 +24,7 @@
@@ -671,7 +671,7 @@ Returns:
diff --git a/docs/MigrationsManager.html b/docs/MigrationsManager.html
index 272ae9380..538d2753f 100644
--- a/docs/MigrationsManager.html
+++ b/docs/MigrationsManager.html
@@ -24,7 +24,7 @@
@@ -835,7 +835,7 @@ Example
diff --git a/docs/OAUthWithIDTokenValidation.html b/docs/OAUthWithIDTokenValidation.html
index a3d16b815..eeee4db3e 100644
--- a/docs/OAUthWithIDTokenValidation.html
+++ b/docs/OAUthWithIDTokenValidation.html
@@ -24,7 +24,7 @@
@@ -692,7 +692,7 @@ Returns:
diff --git a/docs/OAuthAuthenticator.html b/docs/OAuthAuthenticator.html
index 7489502b0..799953ef3 100644
--- a/docs/OAuthAuthenticator.html
+++ b/docs/OAuthAuthenticator.html
@@ -24,7 +24,7 @@
@@ -2169,7 +2169,7 @@ Returns:
diff --git a/docs/OrganizationsManager.html b/docs/OrganizationsManager.html
index 4f0adf626..fbc55f149 100644
--- a/docs/OrganizationsManager.html
+++ b/docs/OrganizationsManager.html
@@ -24,7 +24,7 @@
@@ -7747,7 +7747,7 @@ Example
diff --git a/docs/PasswordlessAuthenticator.html b/docs/PasswordlessAuthenticator.html
index 988f4efaa..1a1480092 100644
--- a/docs/PasswordlessAuthenticator.html
+++ b/docs/PasswordlessAuthenticator.html
@@ -24,7 +24,7 @@
@@ -1804,7 +1804,7 @@ Examples
diff --git a/docs/PromptsManager.html b/docs/PromptsManager.html
index d157a33c6..a52b5cb08 100644
--- a/docs/PromptsManager.html
+++ b/docs/PromptsManager.html
@@ -24,7 +24,7 @@
@@ -1481,7 +1481,7 @@ Example
diff --git a/docs/ResourceServersManager.html b/docs/ResourceServersManager.html
index 71f9d539e..a40d4918e 100644
--- a/docs/ResourceServersManager.html
+++ b/docs/ResourceServersManager.html
@@ -24,7 +24,7 @@
@@ -1749,7 +1749,7 @@ Example
diff --git a/docs/RestClient%0A%7B@link%20https___github.com_ngonzalvez_rest-facade%7Dexternal_.html b/docs/RestClient%0A%7B@link%20https___github.com_ngonzalvez_rest-facade%7Dexternal_.html
index 8d329f726..822f06337 100644
--- a/docs/RestClient%0A%7B@link%20https___github.com_ngonzalvez_rest-facade%7Dexternal_.html
+++ b/docs/RestClient%0A%7B@link%20https___github.com_ngonzalvez_rest-facade%7Dexternal_.html
@@ -25,7 +25,7 @@
@@ -136,7 +136,7 @@
diff --git a/docs/RetryRestClient.html b/docs/RetryRestClient.html
index 9fcc56429..19f014445 100644
--- a/docs/RetryRestClient.html
+++ b/docs/RetryRestClient.html
@@ -24,7 +24,7 @@
@@ -377,7 +377,7 @@ Parameters:
diff --git a/docs/RetryRestClient.js.html b/docs/RetryRestClient.js.html
index 0b1570cc7..9799d24cf 100644
--- a/docs/RetryRestClient.js.html
+++ b/docs/RetryRestClient.js.html
@@ -24,7 +24,7 @@
@@ -157,7 +157,7 @@ RetryRestClient.js
diff --git a/docs/RolesManager.html b/docs/RolesManager.html
index 0c4722aa4..33d691040 100644
--- a/docs/RolesManager.html
+++ b/docs/RolesManager.html
@@ -24,7 +24,7 @@
@@ -3554,7 +3554,7 @@ Example
diff --git a/docs/RulesConfigsManager.html b/docs/RulesConfigsManager.html
index 4e5fcd3a5..f9dcb8e0f 100644
--- a/docs/RulesConfigsManager.html
+++ b/docs/RulesConfigsManager.html
@@ -24,7 +24,7 @@
@@ -1162,7 +1162,7 @@ Example
diff --git a/docs/RulesManager.html b/docs/RulesManager.html
index 5f9db744a..2de25fc6a 100644
--- a/docs/RulesManager.html
+++ b/docs/RulesManager.html
@@ -24,7 +24,7 @@
@@ -1755,7 +1755,7 @@ Example
diff --git a/docs/StatsManager.html b/docs/StatsManager.html
index 3c32ee987..6c4b45323 100644
--- a/docs/StatsManager.html
+++ b/docs/StatsManager.html
@@ -24,7 +24,7 @@
@@ -839,7 +839,7 @@ Example
diff --git a/docs/TenantManager.html b/docs/TenantManager.html
index 42c32957b..30cafc780 100644
--- a/docs/TenantManager.html
+++ b/docs/TenantManager.html
@@ -24,7 +24,7 @@
@@ -791,7 +791,7 @@ Example
diff --git a/docs/TicketsManager.html b/docs/TicketsManager.html
index c8d9b0740..40dc3cba3 100644
--- a/docs/TicketsManager.html
+++ b/docs/TicketsManager.html
@@ -24,7 +24,7 @@
@@ -1498,7 +1498,7 @@ Example
diff --git a/docs/TokensManager.html b/docs/TokensManager.html
index 260aeb667..3592340f9 100644
--- a/docs/TokensManager.html
+++ b/docs/TokensManager.html
@@ -24,7 +24,7 @@
@@ -1366,7 +1366,7 @@ Example
diff --git a/docs/UserBlocksManager.html b/docs/UserBlocksManager.html
index 614320bf8..665c2ca86 100644
--- a/docs/UserBlocksManager.html
+++ b/docs/UserBlocksManager.html
@@ -24,7 +24,7 @@
@@ -1431,7 +1431,7 @@ Example
diff --git a/docs/UsersManager.html b/docs/UsersManager.html
index e58cff1de..f8d5fb918 100644
--- a/docs/UsersManager.html
+++ b/docs/UsersManager.html
@@ -24,7 +24,7 @@
@@ -15874,7 +15874,7 @@ Example
diff --git a/docs/auth_DatabaseAuthenticator.js.html b/docs/auth_DatabaseAuthenticator.js.html
index 4ddf921c9..42c1dc141 100644
--- a/docs/auth_DatabaseAuthenticator.js.html
+++ b/docs/auth_DatabaseAuthenticator.js.html
@@ -24,7 +24,7 @@
@@ -332,7 +332,7 @@ auth/DatabaseAuthenticator.js
diff --git a/docs/auth_OAUthWithIDTokenValidation.js.html b/docs/auth_OAUthWithIDTokenValidation.js.html
index 4f0fc658a..bfaca82a8 100644
--- a/docs/auth_OAUthWithIDTokenValidation.js.html
+++ b/docs/auth_OAUthWithIDTokenValidation.js.html
@@ -24,7 +24,7 @@
@@ -176,7 +176,7 @@ auth/OAUthWithIDTokenValidation.js
diff --git a/docs/auth_OAuthAuthenticator.js.html b/docs/auth_OAuthAuthenticator.js.html
index 8ed753104..725c87813 100644
--- a/docs/auth_OAuthAuthenticator.js.html
+++ b/docs/auth_OAuthAuthenticator.js.html
@@ -24,7 +24,7 @@
@@ -443,7 +443,7 @@ auth/OAuthAuthenticator.js
diff --git a/docs/auth_PasswordlessAuthenticator.js.html b/docs/auth_PasswordlessAuthenticator.js.html
index 079be800a..44bcb970c 100644
--- a/docs/auth_PasswordlessAuthenticator.js.html
+++ b/docs/auth_PasswordlessAuthenticator.js.html
@@ -24,7 +24,7 @@
@@ -338,7 +338,7 @@ auth/PasswordlessAuthenticator.js
diff --git a/docs/auth_TokensManager.js.html b/docs/auth_TokensManager.js.html
index 5e86305b6..d244a4066 100644
--- a/docs/auth_TokensManager.js.html
+++ b/docs/auth_TokensManager.js.html
@@ -24,7 +24,7 @@
@@ -294,7 +294,7 @@ auth/TokensManager.js
diff --git a/docs/auth_UsersManager.js.html b/docs/auth_UsersManager.js.html
index 611c018bf..b83637acf 100644
--- a/docs/auth_UsersManager.js.html
+++ b/docs/auth_UsersManager.js.html
@@ -24,7 +24,7 @@
@@ -213,7 +213,7 @@ auth/UsersManager.js
diff --git a/docs/auth_idToken.js.html b/docs/auth_idToken.js.html
index 645f9ff8d..2e0e4dd05 100644
--- a/docs/auth_idToken.js.html
+++ b/docs/auth_idToken.js.html
@@ -24,7 +24,7 @@
@@ -219,7 +219,7 @@ auth/idToken.js
diff --git a/docs/auth_index.js.html b/docs/auth_index.js.html
index 5e12b3efe..85fa39193 100644
--- a/docs/auth_index.js.html
+++ b/docs/auth_index.js.html
@@ -24,7 +24,7 @@
@@ -619,7 +619,7 @@ auth/index.js
diff --git a/docs/errors.js.html b/docs/errors.js.html
index 582c0c6be..96225e101 100644
--- a/docs/errors.js.html
+++ b/docs/errors.js.html
@@ -24,7 +24,7 @@
@@ -112,7 +112,7 @@ errors.js
diff --git a/docs/external-RestClient.html b/docs/external-RestClient.html
index f0f2d4451..2cd2acc37 100644
--- a/docs/external-RestClient.html
+++ b/docs/external-RestClient.html
@@ -24,7 +24,7 @@
@@ -140,7 +140,7 @@
diff --git a/docs/global.html b/docs/global.html
index 91ded5945..fc77bb8cd 100644
--- a/docs/global.html
+++ b/docs/global.html
@@ -24,7 +24,7 @@
@@ -976,7 +976,7 @@ Returns:
diff --git a/docs/index.html b/docs/index.html
index aa0174f29..d0cca88c1 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -24,7 +24,7 @@
@@ -191,7 +191,7 @@ License
diff --git a/docs/index.js.html b/docs/index.js.html
index df25f6e0f..c9a798d29 100644
--- a/docs/index.js.html
+++ b/docs/index.js.html
@@ -24,7 +24,7 @@
@@ -63,7 +63,7 @@ index.js
diff --git a/docs/management_ActionsManager.js.html b/docs/management_ActionsManager.js.html
index 3ab21ab2a..abfd95659 100644
--- a/docs/management_ActionsManager.js.html
+++ b/docs/management_ActionsManager.js.html
@@ -24,7 +24,7 @@
@@ -639,7 +639,7 @@ management/ActionsManager.js
diff --git a/docs/management_AttackProtectionManager.js.html b/docs/management_AttackProtectionManager.js.html
index d6f85887a..19b914af7 100644
--- a/docs/management_AttackProtectionManager.js.html
+++ b/docs/management_AttackProtectionManager.js.html
@@ -24,7 +24,7 @@
@@ -239,7 +239,7 @@ management/AttackProtectionManager.js
diff --git a/docs/management_BlacklistedTokensManager.js.html b/docs/management_BlacklistedTokensManager.js.html
index 092b31fec..e7a8534fb 100644
--- a/docs/management_BlacklistedTokensManager.js.html
+++ b/docs/management_BlacklistedTokensManager.js.html
@@ -24,7 +24,7 @@
@@ -147,7 +147,7 @@ management/BlacklistedTokensManager.js
diff --git a/docs/management_BrandingManager.js.html b/docs/management_BrandingManager.js.html
index b9523b480..b8567046e 100644
--- a/docs/management_BrandingManager.js.html
+++ b/docs/management_BrandingManager.js.html
@@ -24,7 +24,7 @@
@@ -213,7 +213,7 @@ management/BrandingManager.js
diff --git a/docs/management_ClientGrantsManager.js.html b/docs/management_ClientGrantsManager.js.html
index e4253d1d8..293ec4b7e 100644
--- a/docs/management_ClientGrantsManager.js.html
+++ b/docs/management_ClientGrantsManager.js.html
@@ -24,7 +24,7 @@
@@ -204,7 +204,7 @@ management/ClientGrantsManager.js
diff --git a/docs/management_ClientsManager.js.html b/docs/management_ClientsManager.js.html
index 7d205d263..753a25f9b 100644
--- a/docs/management_ClientsManager.js.html
+++ b/docs/management_ClientsManager.js.html
@@ -24,7 +24,7 @@
@@ -96,6 +96,19 @@ management/ClientsManager.js
options.tokenProvider
);
this.resource = new RetryRestClient(auth0RestClient, options.retry);
+
+ /**
+ * Provides an abstraction layer for consuming the
+ * {@link https://auth0.com/docs/api/management/v2#!/Clients/post_rotate_secret Auth0 Clients Rotate a client secret}.
+ *
+ * @type {external:RestClient}
+ */
+ const auth0RotateSecretClient = new Auth0RestClient(
+ `${options.baseUrl}/clients/:client_id/rotate-secret`,
+ clientOptions,
+ options.tokenProvider
+ );
+ this.rotateSecretResource = new RetryRestClient(auth0RotateSecretClient, options.retry);
}
/**
@@ -208,6 +221,36 @@ management/ClientsManager.js
delete(...args) {
return this.resource.delete(...args);
}
+
+ /**
+ * Rotate a client secret
+ *
+ * @example
+ * management.clients.rotateClientSecret({ client_id: CLIENT_ID }, function (err, user) {
+ * if (err) {
+ * // Handle error.
+ * }
+ *
+ * // Client secret rotated.
+ * });
+ * @param {object} params params object
+ * @param {string} params.client_id Application client ID.
+ * @returns {Promise|undefined}
+ */
+ rotateClientSecret(params, cb) {
+ const query = params || {};
+
+ // Require a client ID.
+ if (!params.client_id) {
+ throw new ArgumentError('The client_id cannot be null or undefined');
+ }
+
+ if (cb && cb instanceof Function) {
+ return this.rotateSecretResource.create(query, {}, cb);
+ }
+
+ return this.rotateSecretResource.create(query, {});
+ }
}
module.exports = ClientsManager;
@@ -223,7 +266,7 @@ management/ClientsManager.js
diff --git a/docs/management_ConnectionsManager.js.html b/docs/management_ConnectionsManager.js.html
index f2ddd5d42..e143264ab 100644
--- a/docs/management_ConnectionsManager.js.html
+++ b/docs/management_ConnectionsManager.js.html
@@ -24,7 +24,7 @@
@@ -296,7 +296,7 @@ management/ConnectionsManager.js
diff --git a/docs/management_CustomDomainsManager.js.html b/docs/management_CustomDomainsManager.js.html
index ed71dfbaa..c5acca954 100644
--- a/docs/management_CustomDomainsManager.js.html
+++ b/docs/management_CustomDomainsManager.js.html
@@ -24,7 +24,7 @@
@@ -225,7 +225,7 @@ management/CustomDomainsManager.js
diff --git a/docs/management_DeviceCredentialsManager.js.html b/docs/management_DeviceCredentialsManager.js.html
index 86604336e..4e8853e9e 100644
--- a/docs/management_DeviceCredentialsManager.js.html
+++ b/docs/management_DeviceCredentialsManager.js.html
@@ -24,7 +24,7 @@
@@ -165,7 +165,7 @@ management/DeviceCredentialsManager.js
diff --git a/docs/management_EmailProviderManager.js.html b/docs/management_EmailProviderManager.js.html
index 028194007..e09f324f2 100644
--- a/docs/management_EmailProviderManager.js.html
+++ b/docs/management_EmailProviderManager.js.html
@@ -24,7 +24,7 @@
@@ -181,7 +181,7 @@ management/EmailProviderManager.js
diff --git a/docs/management_EmailTemplatesManager.js.html b/docs/management_EmailTemplatesManager.js.html
index 5c1c3268f..ec344a671 100644
--- a/docs/management_EmailTemplatesManager.js.html
+++ b/docs/management_EmailTemplatesManager.js.html
@@ -24,7 +24,7 @@
@@ -165,7 +165,7 @@ management/EmailTemplatesManager.js
diff --git a/docs/management_GrantsManager.js.html b/docs/management_GrantsManager.js.html
index d9d66d53f..69adb362c 100644
--- a/docs/management_GrantsManager.js.html
+++ b/docs/management_GrantsManager.js.html
@@ -24,7 +24,7 @@
@@ -164,7 +164,7 @@ management/GrantsManager.js
diff --git a/docs/management_GuardianManager.js.html b/docs/management_GuardianManager.js.html
index 27c377dbd..1b96ecefe 100644
--- a/docs/management_GuardianManager.js.html
+++ b/docs/management_GuardianManager.js.html
@@ -24,7 +24,7 @@
@@ -486,7 +486,7 @@ management/GuardianManager.js
diff --git a/docs/management_HooksManager.js.html b/docs/management_HooksManager.js.html
index 6f99b7664..3f4afb852 100644
--- a/docs/management_HooksManager.js.html
+++ b/docs/management_HooksManager.js.html
@@ -24,7 +24,7 @@
@@ -378,7 +378,7 @@ management/HooksManager.js
diff --git a/docs/management_JobsManager.js.html b/docs/management_JobsManager.js.html
index dca3132ac..c68f1d93e 100644
--- a/docs/management_JobsManager.js.html
+++ b/docs/management_JobsManager.js.html
@@ -24,7 +24,7 @@
@@ -408,7 +408,7 @@ management/JobsManager.js
diff --git a/docs/management_LogStreamsManager.js.html b/docs/management_LogStreamsManager.js.html
index f04dfeae8..8d49c2cb5 100644
--- a/docs/management_LogStreamsManager.js.html
+++ b/docs/management_LogStreamsManager.js.html
@@ -24,7 +24,7 @@
@@ -215,7 +215,7 @@ management/LogStreamsManager.js
diff --git a/docs/management_LogsManager.js.html b/docs/management_LogsManager.js.html
index 802895152..12b3ad40c 100644
--- a/docs/management_LogsManager.js.html
+++ b/docs/management_LogsManager.js.html
@@ -24,7 +24,7 @@
@@ -161,7 +161,7 @@ management/LogsManager.js
diff --git a/docs/management_ManagementTokenProvider.js.html b/docs/management_ManagementTokenProvider.js.html
index c004853ef..885cc30ea 100644
--- a/docs/management_ManagementTokenProvider.js.html
+++ b/docs/management_ManagementTokenProvider.js.html
@@ -24,7 +24,7 @@
@@ -187,7 +187,7 @@ management/ManagementTokenProvider.js
diff --git a/docs/management_MigrationsManager.js.html b/docs/management_MigrationsManager.js.html
index db4cdfe82..76a5799cc 100644
--- a/docs/management_MigrationsManager.js.html
+++ b/docs/management_MigrationsManager.js.html
@@ -24,7 +24,7 @@
@@ -151,7 +151,7 @@ management/MigrationsManager.js
diff --git a/docs/management_OrganizationsManager.js.html b/docs/management_OrganizationsManager.js.html
index c39ed3a20..9e53912b1 100644
--- a/docs/management_OrganizationsManager.js.html
+++ b/docs/management_OrganizationsManager.js.html
@@ -24,7 +24,7 @@
@@ -824,7 +824,7 @@ management/OrganizationsManager.js
diff --git a/docs/management_PromptsManager.js.html b/docs/management_PromptsManager.js.html
index 3fd14136c..5be90a1ce 100644
--- a/docs/management_PromptsManager.js.html
+++ b/docs/management_PromptsManager.js.html
@@ -24,7 +24,7 @@
@@ -244,7 +244,7 @@ management/PromptsManager.js
diff --git a/docs/management_ResourceServersManager.js.html b/docs/management_ResourceServersManager.js.html
index 222c066eb..ad633c221 100644
--- a/docs/management_ResourceServersManager.js.html
+++ b/docs/management_ResourceServersManager.js.html
@@ -24,7 +24,7 @@
@@ -222,7 +222,7 @@ management/ResourceServersManager.js
diff --git a/docs/management_RolesManager.js.html b/docs/management_RolesManager.js.html
index 2775ac26d..cd3868eda 100644
--- a/docs/management_RolesManager.js.html
+++ b/docs/management_RolesManager.js.html
@@ -24,7 +24,7 @@
@@ -417,7 +417,7 @@ management/RolesManager.js
diff --git a/docs/management_RulesConfigsManager.js.html b/docs/management_RulesConfigsManager.js.html
index b6e4b3fbe..b8f773a1b 100644
--- a/docs/management_RulesConfigsManager.js.html
+++ b/docs/management_RulesConfigsManager.js.html
@@ -24,7 +24,7 @@
@@ -165,7 +165,7 @@ management/RulesConfigsManager.js
diff --git a/docs/management_RulesManager.js.html b/docs/management_RulesManager.js.html
index 849b48e55..a510c0fc0 100644
--- a/docs/management_RulesManager.js.html
+++ b/docs/management_RulesManager.js.html
@@ -24,7 +24,7 @@
@@ -227,7 +227,7 @@ management/RulesManager.js
diff --git a/docs/management_StatsManager.js.html b/docs/management_StatsManager.js.html
index 38bad7a0c..bbadadda0 100644
--- a/docs/management_StatsManager.js.html
+++ b/docs/management_StatsManager.js.html
@@ -24,7 +24,7 @@
@@ -159,7 +159,7 @@ management/StatsManager.js
diff --git a/docs/management_TenantManager.js.html b/docs/management_TenantManager.js.html
index 58e227622..272322621 100644
--- a/docs/management_TenantManager.js.html
+++ b/docs/management_TenantManager.js.html
@@ -24,7 +24,7 @@
@@ -151,7 +151,7 @@ management/TenantManager.js
diff --git a/docs/management_TicketsManager.js.html b/docs/management_TicketsManager.js.html
index 658466f59..41ae61dd4 100644
--- a/docs/management_TicketsManager.js.html
+++ b/docs/management_TicketsManager.js.html
@@ -24,7 +24,7 @@
@@ -179,7 +179,7 @@ management/TicketsManager.js
diff --git a/docs/management_UserBlocksManager.js.html b/docs/management_UserBlocksManager.js.html
index 51e935446..3d95a304e 100644
--- a/docs/management_UserBlocksManager.js.html
+++ b/docs/management_UserBlocksManager.js.html
@@ -24,7 +24,7 @@
@@ -203,7 +203,7 @@ management/UserBlocksManager.js
diff --git a/docs/management_UsersManager.js.html b/docs/management_UsersManager.js.html
index 23b4c5dfd..c5c3e6bda 100644
--- a/docs/management_UsersManager.js.html
+++ b/docs/management_UsersManager.js.html
@@ -24,7 +24,7 @@
@@ -889,7 +889,7 @@ management/UsersManager.js
diff --git a/docs/management_index.js.html b/docs/management_index.js.html
index 371daa85a..5fefc80c2 100644
--- a/docs/management_index.js.html
+++ b/docs/management_index.js.html
@@ -24,7 +24,7 @@
@@ -3268,10 +3268,10 @@ management/index.js
}
/**
- * Get the new universal login template.
+ * Set the new universal login template.
*
* @example
- * management.setBrandingUniversalLoginTemplate({ template: "a template" }, function (err, template) {
+ * management.setBrandingUniversalLoginTemplate({}, { template: "a template" }, function (err, template) {
* if (err) {
* // Handle error.
* }
@@ -3426,7 +3426,7 @@ management/index.js
diff --git a/docs/utils.js.html b/docs/utils.js.html
index 74b706393..726617414 100644
--- a/docs/utils.js.html
+++ b/docs/utils.js.html
@@ -24,7 +24,7 @@
@@ -112,7 +112,7 @@ utils.js
diff --git a/package.json b/package.json
index 8658ae39a..a28268a50 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "auth0",
- "version": "2.40.0",
+ "version": "2.41.0",
"description": "SDK for Auth0 API v2",
"main": "src/index.js",
"sideEffects": false,