Office.auth.getAccessToken throw exception for outlook android but works in browser

Weavers Developer 0 Reputation points
2024-04-30T10:59:32.2+00:00

I am creating an outlook addin using office js.

Office.auth.getAccessToken throw exception for outlook android but works in browser and desktop version. But when I print the error this return an empty object {}. No error code no other property was there.

Here is my code: let middletierToken = await Office.auth.getAccessToken({ allowSignInPrompt: true, allowConsentPrompt: true, forMSGraphAccess: true, });

Outlook
Outlook
A family of Microsoft email and calendar products.
3,077 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,557 questions
{count} votes