Muddled JavaScript with Obfuscated PowerShell Decoded

Authentication with PowerShell” to better understand how the base64 string is encoded in the value. There is a section dedicated to crafting a basic authentication key-value pair. TCHNICA HIT PAPR AUTHENTICATION WITH A SECURE AND DISTRIBUTED API DESIGN 4 TOKEN AUTHENTICATION ................
................