This sample shows how you can get multiple resources from Azure AD using MSAL. Please read this blog post to get more information how I implemented this solution.
This repository contains the source code used by the Yo Office generator when you create a new Office Add-in that appears in the task pane.
This template is written using TypeScript. For the JavaScript version of this template, go to Office-Addin-TaskPane-React-JS.
- Office add-in documentation
- More Office Add-in samples at OfficeDev on Github