401 Unauthorized Error on Standard OpenEMR API

I have successfully configured an application in OpenEMR. Using the application’s Client ID and Client Secret, I was able to authorize it through ${openemr-url}/swagger/#/ and log in without any issues after selecting all available scopes.

However, while the FHIR API endpoints are functioning correctly, attempts to access the standard OpenEMR API result in a 401 Unauthorized error. Could you please clarify why this is occurring?

I am having the same issues. Any luck @Abiral_Pokhrel ?

I belive it has to do with JSON Web Token (JWT) or improper API authentication header.