# AuthApiError on basic React client tutorial

**URL:** <https://devforum.okta.com/t/authapierror-on-basic-react-client-tutorial/3965>\
**Category:** Questions\
**Created:** [January 20, 2019, 7:35pm UTC](https://devforum.okta.com/t/authapierror-on-basic-react-client-tutorial/3965 "2019-01-20T19:35:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![smartin](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@smartin](https://devforum.okta.com/u/smartin)\
**Post date:** [January 20, 2019, 7:35pm UTC](https://devforum.okta.com/t/authapierror-on-basic-react-client-tutorial/3965/1 "2019-01-20T19:35:31Z")

</div>

I have created the react client tutorial.  
[https://developer.okta.com/quickstart/#/react/dotnet/aspnet4](https://developer.okta.com/quickstart/#/react/dotnet/aspnet4)

When I click login, I get the Okta login screen. Upon submitting the login seems to succeed, but, I get a page that says ‘AuthApiError’.

My network tab in chrome looks like this:

 ![](https://global.discourse-cdn.com/oktadev/original/1X/fd149af00ad2c3fda5cbfc01037ac1be5185dbe2.png)

My App.js is basically idenctical to tutorial:

 ![](https://global.discourse-cdn.com/oktadev/original/1X/11839f7e5b33fabcdfdae8393f8a09fca0bf28e8.png)

My Home.js is an exact copy of the file from the tutorial.

---

<div class="post-metadata">

**Author:** ![smartin](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@smartin](https://devforum.okta.com/u/smartin)\
**Post date:** [January 20, 2019, 9:10pm UTC](https://devforum.okta.com/t/authapierror-on-basic-react-client-tutorial/3965/2 "2019-01-20T21:10:03Z")

</div>

Here is a minimal sample app which shows the issue:  
[https://drive.google.com/file/d/1jZ5zjQLZWJDFeJEjoEcgWvij\_2akGYy3/view?usp=sharing](https://drive.google.com/file/d/1jZ5zjQLZWJDFeJEjoEcgWvij_2akGYy3/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![smartin](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@smartin](https://devforum.okta.com/u/smartin)\
**Post date:** [January 20, 2019, 9:33pm UTC](https://devforum.okta.com/t/authapierror-on-basic-react-client-tutorial/3965/3 "2019-01-20T21:33:36Z")

</div>

Close this issue, this was the CORS issue that others have solved.

---

<div class="post-metadata">

**Author:** ![Fabio](https://avatars.discourse-cdn.com/v4/letter/f/f4b2a3/32.png) [@Fabio](https://devforum.okta.com/u/Fabio)\
**Post date:** [April 16, 2019, 7:08am UTC](https://devforum.okta.com/t/authapierror-on-basic-react-client-tutorial/3965/4 "2019-04-16T07:08:01Z")

</div>

Hello Smartin, how did you solve this problem?

---

<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 17, 2024, 8:00pm UTC](https://devforum.okta.com/t/authapierror-on-basic-react-client-tutorial/3965/5 "2024-01-17T20:00:32Z")

</div>

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