we are developing react web app using openemr database and apis, if we use the patient login or get patient access token and then use that access token in auth, it is not working, none of the requests [ example : appointments…etc ] are working with patient access token.
With access token of admin or practitioner it is working.
we are creating access token for admin/doctor and patient separately, we are generating users based token for admin and doctor. Also patient based token for patient, so the patient token has the limited access.
So the other apis which are in access of users are not accessible by the patient.
what is the solution or workaround for this ?