OAuth2 Authenticaion with API Call

Hi All,

Does anyone know of an easy way to grab info via API using OAuth2 Authentication?

Thanks in advance,

Do you use Firebase?


I do but not for this instance. The API connects to a third party application.

Its really just to see how to pass the Client ID, Secret & URL to grab a new accesstoken each request.

Once its generated and assigned to variable, I can then pass it along with the API call to Authenticate/grab the info.

I assume adding to the headers would work but I get a CORS policy error when doing so.

Not sure of the best approach for this though.