How to access an OIDC secured api

I have two apps. app1 has an api say /salarydetail?userid=abc123 and I want to access this api from app2. App1 is oidc secured. now how to access this api?