Skip to content

Commit 1a62c1b

Browse files
dpopp07germanattanasio
authored andcommitted
fix: use correct syntax for initializing the token manager (#220)
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.
1 parent 2c132bc commit 1a62c1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const serviceUrl = process.env.SPEECH_TO_TEXT_URL || 'https://stream.watsonplatf
3232

3333
if (process.env.SPEECH_TO_TEXT_IAM_APIKEY && process.env.SPEECH_TO_TEXT_IAM_APIKEY !== '') {
3434
instanceType = 'iam';
35-
tokenManager = new IamTokenManagerV1.IamTokenManagerV1({
35+
tokenManager = new IamTokenManagerV1({
3636
iamApikey: process.env.SPEECH_TO_TEXT_IAM_APIKEY || '<iam_apikey>',
3737
iamUrl: process.env.SPEECH_TO_TEXT_IAM_URL || 'https://iam.bluemix.net/identity/token',
3838
});

0 commit comments

Comments
 (0)