# React Quickstart demo not working

**URL:** <https://community.auth0.com/t/react-quickstart-demo-not-working/59214>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [March 10, 2021, 6:32pm UTC](https://community.auth0.com/t/react-quickstart-demo-not-working/59214 "2021-03-10T18:32:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cartercwchen1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cartercwchen1/32/13315_2.png) [@cartercwchen1](https://community.auth0.com/u/cartercwchen1)\
**Post date:** [March 10, 2021, 6:32pm UTC](https://community.auth0.com/t/react-quickstart-demo-not-working/59214/1 "2021-03-10T18:32:52Z")

</div>

I followed the Auth0 quickstart guide for React ([Auth0 React SDK Quickstarts: Login](https://auth0.com/docs/quickstart/spa/react)) to the letter and when I create a new user, and attempt to login with that user, it clears the page and just displays “Oops… unauthorized”.

Steps to reproduce:

1. create an auth0 account
2. download the React quickstart guide
3. create an auth\_config.json file in the /src folder
4. fill the ‘domain’ field of auth\_config.json with the domain of the Default App. fill ‘clientId’ field with client ID of the Default App. Delete the other properties.
5. add ‘[http://localhost:3000](http://localhost:3000)’ to Allowed Callback URLs, Allowed Web Origins, and Allowed Logout URLs
6. run `npm install` and `npm start` in the root directory of the quickstart
7. click the login button
8. create a new user
9. attempt to login using that user
10. receive error: “Oops… unauthorized”

Can anyone help me out? Seems like the quickstart guide should just work out of the box…

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [March 10, 2021, 8:41pm UTC](https://community.auth0.com/t/react-quickstart-demo-not-working/59214/3 "2021-03-10T20:41:55Z")

</div>

Hi @cartercwchen1,

Welcome to the Community!

I don’t believe the default app has an application type selected yet. It must be **Single Page Application** in the application settings under **Application Properties** :

 ![screenshot-manage.auth0.com-2021.03.10-15_38_17](https://global.discourse-cdn.com/auth0/original/3X/9/5/95e559d656dafaadb5e14c6affa375a8a7768dce.png)

Please let me know if that resolves the issue. Thanks!

---

<div class="post-metadata">

**Author:** ![cartercwchen1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cartercwchen1/32/13315_2.png) [@cartercwchen1](https://community.auth0.com/u/cartercwchen1)\
**Post date:** [March 11, 2021, 3:04am UTC](https://community.auth0.com/t/react-quickstart-demo-not-working/59214/4 "2021-03-11T03:04:10Z")

</div>

Works! Thanks!!!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 26, 2021, 3:04am UTC](https://community.auth0.com/t/react-quickstart-demo-not-working/59214/5 "2021-03-26T03:04:47Z")

</div>

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