I have a react app that is Okta protected. User logs in (using the default Okta login screen) and is then delivered to the home page of the app. Now in the home page, I have a button which when clicked, I’d like it to fetch data from a Kubernettes Dashboard API that is also Okta protected. The React app and the API are two separate apps in Okta, under the same domain.
What I’ve tried to accomplish this is to use the same token that I retrieved from the initial login screen of the React app, but this doesn’t work since we have two separate Okta apps.
My question is, how can I use the same Okta session to retrieve data from the API?