Is there is a way to get Microsoft Graph access token from Azure AD within Outlook add in? Technically user is logged in when Outlook is open, so from outlook add in I can get email ID (internetMessageId https://dev.office.com/reference/add-ins/outlook/1.5/Office.context.mailbox.item?product=outlook&version=v1.5), username, etc.
I want to use email id and token to retrieve single email message https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/message_get
But is it possible to generate Azure AD access token not making the user log in once again like in the example? https://github.com/AzureAD/microsoft-authentication-library-for-js
Cheers