Azure message bus

I am trying to access Azure Message bus from Snaplogic using REST API. I have used the example in the Azure Service Bus Integration, Azure Service Bus Integration post. But I cannot get the Token generation to work.

I get the error, TypeError: Cannot read property “HmacSHA256” from undefined in sldb:/hmac-sha256.js at line number 16.

Does anybody have a working Azure message bus pipeline they can share or have a fix to the problem above?