Skip to content

Commit

Permalink
Merge pull request #514 from auth0/update-device-credentials-docs
Browse files Browse the repository at this point in the history
Document user_id parameter for getDeviceCredentials API
  • Loading branch information
jimmyjames authored Jul 23, 2020
2 parents bde5148 + 3a2a29e commit c88afbd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/management/DeviceCredentialsManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,13 @@ utils.wrapPropertyMethod(DeviceCredentialsManager, 'createPublicKey', 'resource.
* @memberOf module:management.DeviceCredentialsManager.prototype
*
* @example
* management.deviceCredentials.getAll(function (err, credentials) {
* var params = {user_id: "USER_ID"};
*
* management.deviceCredentials.getAll(params, function (err, credentials) {
* console.log(credentials.length);
* });
*
* @param {Object} params Credential parameters.
* @param {Function} [cb] Callback function.
*
* @return {Promise|undefined}
Expand Down
5 changes: 4 additions & 1 deletion src/management/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -791,10 +791,13 @@ utils.wrapPropertyMethod(
* @memberOf module:management.ManagementClient.prototype
*
* @example
* management.getDeviceCredentials(function (err, credentials) {
* var params = {user_id: "USER_ID"};
*
* management.getDeviceCredentials(params, function (err, credentials) {
* console.log(credentials.length);
* });
*
* @param {Object} params Credential parameters.
* @param {Function} [cb] Callback function.
*
* @return {Promise|undefined}
Expand Down

0 comments on commit c88afbd

Please # to comment.