React Okta Authorize without login button for API Endpoint

How can i get Access Token just from ENV Variables, there is no login for end user, just API needs to be secured

Hello. Unless you are doing something like the client credentials flow (which shouldn’t be done from a browser), you would need an existing Okta session cookie in order to run an OIDC flow at /authorize.

Thanks, I cannot find any article, how to do this with React, can you guide me to the right section for dependency etc