Error in Microsoft Teams App on Outlook Mobile: Instantiating TeamsUserCredential Throws IA.InternalError
Mohammed Akanji
5
Reputation points
Our Microsoft Teams app works properly on all other hosts but throws an error on Outlook mobile, as shown below. Error --> {"name": IA.InternalError, "code": IT.InternalError} The error occurs when instantiating the TeamsUserCrendential class and attempting to get the logged-in user's basic information (only on Outlook mobile).
Sample code (ReactJs)
// TeamsFx SDK version 2.3.0
const { loading, reload } = useData(async () => {
try {
const authConfig = {
clientId: process.env.REACT_APP_CLIENT_ID,
initiateLoginEndpoint: process.env.REACT_APP_START_LOGIN_PAGE_URL,
};
const credential = new TeamsUserCredential(authConfig);
const userData = await credential.getUserInfo();
} catch (err) {
// error handling
}});
Kindly assist in resolving the issue.
Sign in to answer