I would like to integrate Okta OIDC with my React web app. I want to add my app to the Okta user home dashboard so that when a user clicks on it, they can log in to my app using an Okta token.
I was able to add my app to the Okta dashboard. But I want to implement the below please help.
- Whenever I click on my app from the Okta home dashboard, It should redirect to my login page, in that login page I want to get an Okta token. From this token, I need to find the user’s email linked to Okta.
- Then, I will check in my database if this user is in my user’s table. If they are, I will redirect them to my main dashboard page.
I want to do this using OIDC, but I can’t find a way to get the token on my React login page after being redirected from the Okta home dashboard