How to exchange access token from Microsoft account to Azure communication service token?
I have create an application, use communication service to join call with MSTeams member.
And i have implement login feature, use Microsoft account.
After get access token from MSAL, i use that access token to exchange to ACS (Azure communication service) identityClient.getTokenForTeamsUser , but i get error:
{
"code": "InvalidAccessToken",
"message": "Provided access token is not valid."
}
i has try to call api /teamsUser/:exchangeAccessToken?api-version=2023-10-01 in postman, but get the same error.
My scopes setting is
const scopes = [
"openid",
"profile",
"email"
];
Can you guys help me to fix this error? or do we have any way else to do this function?