Skip to content

Commit

Permalink
fix: use correct syntax for initializing the token manager (#220)
Browse files Browse the repository at this point in the history
This method of initializing the token manager is no longer supported, as its not consistent with all of the other services in the Node SDK. This update will ensure that that Line 35 does not break the code.
  • Loading branch information
dpopp07 authored and germanattanasio committed Mar 25, 2019
1 parent 2c132bc commit 1a62c1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const serviceUrl = process.env.SPEECH_TO_TEXT_URL || 'https://stream.watsonplatf

if (process.env.SPEECH_TO_TEXT_IAM_APIKEY && process.env.SPEECH_TO_TEXT_IAM_APIKEY !== '') {
instanceType = 'iam';
tokenManager = new IamTokenManagerV1.IamTokenManagerV1({
tokenManager = new IamTokenManagerV1({
iamApikey: process.env.SPEECH_TO_TEXT_IAM_APIKEY || '<iam_apikey>',
iamUrl: process.env.SPEECH_TO_TEXT_IAM_URL || 'https://iam.bluemix.net/identity/token',
});
Expand Down

0 comments on commit 1a62c1b

Please sign in to comment.