- Create a new app registation in Azure AD. Enable implict flow, add
https://localhost:3000/as a valid redirect url - Add API permissons to the app: MS Graph:
User.Read,Group.Read.All,profile, SharePoint:AllSites.Read - Under
./webpack/dev.env.jschangeSP_SITE_URLto point to your SharePoint site - Under
./app/src/msal/msalConfig.tsreplace values with yours tenant id and client id from step 1 npm inpm run start- a browser window will open and will give you an option to login. After authentication you will see your groups and site info.
Blog post - Building Single Page Application with React, MSAL.js and PnPjs