An API that connects multiple Microsoft services, enabling data access and automation across platforms
How to get getAccessToken() function alternative in the outlook web add-in?
I wanted to use Microsoft graph API for my outlook add-in. ( I have this working in the web app as well as in the outlook desktop app).
I have tried multiple ways to achieve this flow but everything has some limitations that either won't work on the web app or on the desktop.
Apart from all other ways I find SSO methods more promising. ( https://learn.microsoft.com/en-us/office/dev/add-ins/develop/authorize-to-microsoft-graph ) but in that, it suggests using getAccessToken() function which is not supported in the outlook web app. ( https://learn.microsoft.com/en-us/javascript/api/office/office.auth?view=common-js-preview )
Can anyone please help how can I get Token A in the case of web apps ( OBO flow )? or if any other flow will be more suitable for this requirement?