I need help converting this piece of python to javascript.
auth = "Basic " + base64.b64encode(bytes(IdentityClientId + ":" + IdentityClientSecret, "utf-8")).decode('ascii')
What I've tried:
var auth = "Basic " + unescape(btoa(IdentityClientId + ":" + IdentityClientSecret));
No luck so far.