# Okta React Samples do not run

**URL:** <https://devforum.okta.com/t/okta-react-samples-do-not-run/6846>\
**Category:** Questions\
**Created:** [November 8, 2019, 5:53pm UTC](https://devforum.okta.com/t/okta-react-samples-do-not-run/6846 "2019-11-08T17:53:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![McHolty](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@McHolty](https://devforum.okta.com/u/McHolty)\
**Post date:** [November 8, 2019, 5:53pm UTC](https://devforum.okta.com/t/okta-react-samples-do-not-run/6846/1 "2019-11-08T17:53:46Z")

</div>

Hello,

I cloned the React samples from: [https://github.com/okta/samples-js-react](https://github.com/okta/samples-js-react). I added the testenv file like it instructed and after running the web app I only get a blank screen with a header without buttons.

The only thing present on the header is the ‘Okta-React Sample Project’ link. Nothing else. There are no errors being logged to the console. If I wait long enough (several minutes) eventually: “The development server has disconnected. Refresh the page if necessary.” from webpackHotDevClient.js:74 is shown in the console.

Unsure what do to next seeing how it was cloned this way.

---

<div class="post-metadata">

**Author:** ![McHolty](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@McHolty](https://devforum.okta.com/u/McHolty)\
**Post date:** [November 8, 2019, 6:06pm UTC](https://devforum.okta.com/t/okta-react-samples-do-not-run/6846/2 "2019-11-08T18:06:01Z")

</div>

If I manually type in “[http://localhost:8080/login](http://localhost:8080/login)” as my url then I am brought to the login form. After entering my creds and successfully logging in, I am routed back to: “[http://localhost:8080/implicit/callback](http://localhost:8080/implicit/callback)” but instead of seeing whatever is expected I am being shown “AuthApiError” on the page and in the console it says: “browser-ponyfill.js:532 POST [https://kclife.okta.com/oauth2/default/v1/token](https://kclife.okta.com/oauth2/default/v1/token) 401 (Unauthorized)”

I can tell that this did log me into Okta because if I refresh my admin site (from another browser window) it directly logs me in.

---

<div class="post-metadata">

**Author:** ![dragos](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/dragos/32/1313_2.png) [@dragos](https://devforum.okta.com/u/dragos)\
**Post date:** [November 12, 2019, 3:28am UTC](https://devforum.okta.com/t/okta-react-samples-do-not-run/6846/3 "2019-11-12T03:28:30Z")

</div>

Hi @McHolty

Can you please open a support case with us at [developers@okta.com](mailto:developers@okta.com) in order to have the issue investigated by one of our developer support engineers?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 23, 2024, 7:30pm UTC](https://devforum.okta.com/t/okta-react-samples-do-not-run/6846/4 "2024-01-23T19:30:29Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
