OAUTH2 Azure Dynamics 365 - Solved

I got this working…didn’t use msal-node…tried msal-browser, but eventually I used an implicit grant request for the access token then client credentials grant type for the json data - little bit tricky…the key thing to remember was that a server side call for an access token using azure, gives a response where the access token is preceded by #, nothing can be read in the response server-side after the #, once I knew this it was easy to fix. The client secret and the call using the secret is all done in the backend. Used Postman and webhook.site for debugging, very useful…Would love to know if anyone has got msal working on wix?