- 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.js
changeSP_SITE_URL
to point to your SharePoint site - Under
./app/src/msal/msalConfig.ts
replace values with yours tenant id and client id from step 1 npm i
npm 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