Skip Navigation

Call Graph API from a JavaScript Single Page Application using msal.js

Getting Started Library Docs Support

This sample demonstrates the use of MSAL.JS in a plain JavaScript SPA to get an access token from the AAD v2.0 endpoint to call the Microsoft Graph API.

Steps to Run

The detailed explanation and steps to configure and run this sample are available in the JavaScript SPA guided walkthrough.

Community Help and Support

We use Stack Overflow with the community to provide support. We highly recommend you ask your questions on Stack Overflow first and browse existing issues to see if someone has asked your question before. Make sure that your questions are tagged with 'msal.js'.

If you find a bug in the sample please raise the issue on GitHub Issues.

If you find a bug in msal.js, please raise the issue on msal.js GitHub Issues.

To provide a recommendation, visit our User Voice page.

Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License (the "License");