/vue-msal-sample

Vue.js sample app with MSAL.js

Primary LanguageJavaScript

MSAL.js (Microsoft Authentication Library for Javascript) + Vue.js Sample

  • Uses MSAL.js to add a Sign in with Microsoft button
  • Calls Microsoft Graph API by passing a token obtained via MSAL

How to add MSAL.js to a simple Vue.js app


Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

For detailed explanation on how things work, consult the docs for vue-loader.