
MayurR.49829 (Customer) asked a question.
In our scenario, What we want to have is that.
- User opens the Web application
- It will open the login page
- user enters the username password
- it should authenticate the user from background
- once the authentication completes, it returns the access token to load the application.
How can we achieve such scenario using Okta in ReactJS? We have tried the Okta SignIn Widget but it redirects to Okta SignIn page and then returns back to our application.

Hi @MayurR.49829 (Customer) , Thank you for reaching out to the Okta Community!
This question is more appropriate for our dedicated Okta Developer Forum.
My advice would be to reach out devforum.okta.com to take advantage of their expertise.
While we'll do our best to answer all of your questions here, this medium is more inclined towards Okta core products and features (non-developer work).
In the meantime you can review the following documentation:
https://developer.okta.com/code/react/
If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you.
Hope my answer helps!
--------------------------------
💡 Community Moderator Tip: Join a group today and connect with other Okta customers by region or product.