@@ -28,7 +28,7 @@ module.exports = function (RED) {
2828 iamutils = require ( '../../utilities/iam-utils' ) ,
2929 sttutils = require ( './stt-utils' ) ,
3030 AuthV1 = require ( 'watson-developer-cloud/authorization/v1' ) ,
31- // AuthIAMV1 = require('watson-developer- cloud/iam-token-manager/v1'),
31+ AuthIAMV1 = require ( 'ibm- cloud-sdk-core /iam-token-manager/v1' ) ,
3232 muteMode = true , discardMode = false , autoConnect = true ,
3333 username = '' , password = '' , sUsername = '' , sPassword = '' ,
3434 apikey = '' , sApikey = '' ,
@@ -304,8 +304,8 @@ module.exports = function (RED) {
304304 // console.log('Creating token with endpoint ', endpoint);
305305 // tokenService = new AuthIAMV1.IamTokenManagerV1({iamApikey : apikey, iamUrl: endpoint});
306306
307- // tokenService = new AuthIAMV1.IamTokenManagerV1({iamApikey : apikey});
308- tokenService = new iamutils ( apikey ) ;
307+ tokenService = new AuthIAMV1 . IamTokenManagerV1 ( { iamApikey : apikey } ) ;
308+ // tokenService = new iamutils(apikey);
309309
310310 } else {
311311 tokenService = new AuthV1 ( stt . getCredentials ( ) ) ;
0 commit comments