alexandrtovmach / react-microsoft-login

Microsoft services authorization with React.
https://alexandrtovmach.github.io/react-microsoft-login
MIT License
80 stars 38 forks source link

Any way to actually use the token that is retrieved? #57

Closed Admin-NWIF closed 3 years ago

Admin-NWIF commented 4 years ago

I'd like to use the token I get from authenticating the user to see what groups they are apart of. Seems like you can request user data/user.read scope for Microsoft Graph but I don't see how I might actually reference that data with this lib?

alexandrtovmach commented 3 years ago

Please refer to official Microsoft Graph API for this info, because I'm not confident with that. For sure, you need to request some list of scopes, that required for specific API requests, and use accessToken as bearer auth header