You should pass access token instead of id token when calling web API.
The signature key was not found, Bearer error="invalid_token", error_description="The audience is invalid"
My SPA application is registered in Azure. I use MSAL for user authentication and call secured API, however I get below error while calling the API
Bearer error="invalid_token", error_description="The signature key was not found"
Bearer error="invalid_token", error_description="The audience is invalid"
I pass application client id to class PublicClientApplication of @azure/msal-browser library and gets a ID Token which is passed while calling the API.
It works fine when I use another application client id. Hence, I compared both apps setting registered in Azure and they are exactly same.
Can you please suggest what could be missing?