Skip to content

Commit 966354c

Browse files
author
timmydoza
authored
Clean up environment variables (#20)
1 parent e4e4f93 commit 966354c

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

src/helpers.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ async function deploy() {
124124

125125
const deployOptions = {
126126
env: {
127-
TWILIO_ACCOUNT_SID: this.twilioClient.accountSid,
128127
TWILIO_API_KEY_SID: this.twilioClient.username,
129128
TWILIO_API_KEY_SECRET: this.twilioClient.password,
130129
API_PASSCODE: pin,

src/video-token-server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const MAX_ALLOWED_SESSION_DURATION = 14400;
77

88
module.exports.handler = (context, event, callback) => {
99
const {
10-
TWILIO_ACCOUNT_SID,
10+
ACCOUNT_SID,
1111
TWILIO_API_KEY_SID,
1212
TWILIO_API_KEY_SECRET,
1313
API_PASSCODE,
@@ -58,7 +58,7 @@ module.exports.handler = (context, event, callback) => {
5858
return;
5959
}
6060

61-
const token = new AccessToken(TWILIO_ACCOUNT_SID, TWILIO_API_KEY_SID, TWILIO_API_KEY_SECRET, {
61+
const token = new AccessToken(ACCOUNT_SID, TWILIO_API_KEY_SID, TWILIO_API_KEY_SECRET, {
6262
ttl: MAX_ALLOWED_SESSION_DURATION,
6363
});
6464
token.identity = user_identity;

test/e2e/e2e.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ describe('the RTC Twilio-CLI Plugin', () => {
163163
passcode = getPasscode(stdout.output);
164164
URL = getURL(stdout.output);
165165
webAppURL = getWebAppURL(stdout.output);
166-
console.log(stdout.output);
167166
done();
168167
});
169168

test/video-token-server.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const jwt = require('jsonwebtoken');
44
const callback = jest.fn();
55

66
const mockContext = {
7-
TWILIO_ACCOUNT_SID: 'AC1234',
7+
ACCOUNT_SID: 'AC1234',
88
TWILIO_API_KEY_SID: 'SK1234',
99
TWILIO_API_KEY_SECRET: '123456',
1010
API_PASSCODE: '123456',

0 commit comments

Comments
 (0)