Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mmeier162/ms-identity-docs-code-javascript

 
 

Repository files navigation

page_type languages products name url-fragment description
sample
javascript
azure
ms-graph
microsoft-identity-platform
React single-page app (SPA) that signs in user
msal-react-single-page-app
This minimal React application demonstrates usage of the Microsoft Authentication Library for React (MSAL React) to sign in Microsoft Entra users (authentication), call a protected web API (authorization), and sign out users.

React single-page app (SPA) | Sign in users, call protected API | Microsoft identity platform

This minimal React application demonstrates usage of the Microsoft Authentication Library for React (MSAL React) to:

  • Sign in Microsoft Entra users (authentication)
  • Call a protected web API (authorization)
  • Sign out users

This project was bootstrapped with Create React App.

Available scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

About

Source for the JavaScript & TypeScript code snippets in the Microsoft identity platform documentation found on https://docs.microsoft.com.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 82.6%
  • HTML 13.2%
  • CSS 4.2%