cms-react with msal

Hi,

new to hubspot and hubspot development.

I’m planning on building modules that communicate with an az function app to use an external backend/db.

Having some trouble with setting up the msal package within my module.

Also new to SSR, I’ve rendered my island as clientonly, but still having issues with getting this going.

Has any one had any success in this area?

If you haven’t done so yet, I recommend posting a similar question on Microsoft’s forums or support channels.

I’d like to involve some of our community experts who might have relevant experience. Hey @johnelmer, @ChrisoKlepke, @Mike_Eastwood , do you have any tips or resources you could share? Thank you!

Best,
Kennedy

Thanks for the advice on reaching out to microsoft forums too, that makes a lot of sense.

I did manage to get it going. Once I wrapped my head around server side rendering as well as Islands it wasn’t too bad. Finding the documentation on the cms local server and specifying `--ssl` was a huge help in reducing my cycle time.

For reference I implemented it directly into an island that I specified as client only. I didn’t use the usual msal context provider. There were some additional steps that I’d not seen before, such as running initialize, which I’ve never used before with msal

```javascript

const instance = new PublicClientApplication(msalConfig);
instance.initialize().then

```