Microsoft gaph login example with express and oauth2, This example uses Microsoft gaph. https://developer.microsoft.com/en-us/graph
- get credentials from microsoft gaph - https://docs.microsoft.com/en-us/graph/auth-register-app-v2
- download/clone this respository
- rename the config-example.json to config.json
- fill in all details in the config.json
- run npm i to install all required modules
- run npm start in your command line to test if it works
- run npm start in your command line
- open localhost:3000 in your browser
- click on 'Click here to login' and login with a outlook/office account
- see what happends!
You can find the GET/POST urls from: https://developer.microsoft.com/en-us/graph/graph-explorer