Skip to content

Commit

Permalink
fix: don't debug log the API key secret when creating profiles (twili…
Browse files Browse the repository at this point in the history
  • Loading branch information
childish-sambino committed Jul 10, 2020
1 parent eb95b41 commit 00666ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/profiles/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ class ProfilesCreate extends BaseCommand {

const twilioClient = this.getTwilioClient();
try {
// Don't log the response since it contains the secret.
apiKey = await twilioClient.newKeys.create({ friendlyName: apiKeyFriendlyName });
this.logger.debug(apiKey);
} catch (error) {
this.logger.debug(error);
throw new TwilioCliError('Could not create an API Key.');
Expand Down

0 comments on commit 00666ea

Please sign in to comment.