In my node project I have the following basic code to connect to Azure via a token. The login/logout works great together with our Azure:
const express = require(