Skip to content

Commit

Permalink
Add inline documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
be3 committed Nov 29, 2023
1 parent fff9f4c commit 6ec293b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/client/src/classes/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class Client {
setTwilioEmailAuth(username, password) {
const b64Auth = Buffer.from(username + ':' + password).toString('base64');
this.auth = 'Basic ' + b64Auth;
// Prevent implicit overwriting if baseUrl is not the default value
if (this.defaultRequest.baseUrl === SENDGRID_BASE_URL) {
this.setDefaultRequest('baseUrl', TWILIO_BASE_URL);
}
Expand Down

0 comments on commit 6ec293b

Please sign in to comment.