Here is a sign on page I put together to demo sign on capabilities in React with React Hooks and the MSAL.js 2.0 library. More information on MSAL.js 2.0 can be found here: https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-v2-javascript-auth-code
- Clone this GitHub repository
git clone https://github.com/harishnarain/react-aad-b2c-demo
- Install all dependent npm packages
npm install --save
- Run the demo in development
npm start
Update the clientId section of the /src/authConfig.js file to include your specific application ID from your Azure AD application registration.
- Microsoft Authentication Library (MSAL) for JS
- ReactJS
- Material-UI
MIT License
Pull requests are welcome.