# Problems getting started with Auth0

**URL:** <https://community.auth0.com/t/problems-getting-started-with-auth0/109355>\
**Category:** Get Help\
**Tags:** documentation-request, customer-feedback\
**Created:** [June 15, 2023, 8:44pm UTC](https://community.auth0.com/t/problems-getting-started-with-auth0/109355 "2023-06-15T20:44:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![h.stenstrom](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/h.stenstrom/32/47748_2.png) [@h.stenstrom](https://community.auth0.com/u/h.stenstrom)\
**Post date:** [June 15, 2023, 8:44pm UTC](https://community.auth0.com/t/problems-getting-started-with-auth0/109355/1 "2023-06-15T20:44:37Z")

</div>

# Problems when getting started with Auth0

I get an error page that says _Unauthorized_.

- sample-01 application from [GitHub](https://github.com/auth0-samples/auth0-angular-samples/tree/master/Sample-01)
  - [auth0-angular-samples/Sample-01 at main · auth0-samples/auth0-angular-samples · GitHub](https://github.com/auth0-samples/auth0-angular-samples/tree/master/Sample-01)

- Angular single-page application
- Running on localhost, starting with “npm run dev”
- None of the files in Git changed.
- `auth_config.json` coped from `auth_config.json.example`, and modified

## What I see

- [http://localhost:4200/](http://localhost:4200/) has a nice start page with a blue Log in button
- First time I click on the Log in button, I’m taken to Auth0 login screen,  
where I select Google.
- Then I’m taken to [http://localhost:4200/error](http://localhost:4200/error), and there is the word  
Unauthorized on red background.
- Further attempts to log in from the start screen takes me directly to the  
error page. This may change after a day of inactivity.

I’ve looked at the Auth0 dashboard, Monitoring → Logs. There I see  
Successful Login and Failed Exchange. I don’t understand the details of  
these, or what to look for.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/e/3/e304e3d83beef583a5e1c5c811eec886ee1ecbdf.png)

## `auth_config.json` file

Three items changed, as compared to the exampe file:

- “domain”: “[dev-0dbn2nahjvxav1r1.us.auth0.com](http://dev-0dbn2nahjvxav1r1.us.auth0.com)”, this includes my tenant name,  
as seen on [https://manage.auth0.com/dashboard/us/dev-0dbn2nahjvxav1r1/tenant/general](https://manage.auth0.com/dashboard/us/dev-0dbn2nahjvxav1r1/tenant/general)
  - The region for this tenant is not where I am; it says US-4, and I’m in  
Sweden.

- “clientId”: “6DbQhOkIEi5gx8mCWEwgfSW5PnIhwPHJ”
  - this is the Client ID of the first application on my Applications list,  
as seen on [https://manage.auth0.com/dashboard/us/dev-0dbn2nahjvxav1r1/applications](https://manage.auth0.com/dashboard/us/dev-0dbn2nahjvxav1r1/applications)
  - I have two more applications:
    - one Machine to Machine application, with a name that corresponds to  
the API name
    - “My App”, a single page application that I’m not sure how it got created.

- “audience”: “hartappat-demo-v1”, this is the same as the identifier of the  
Custom API that I defined.

## Settings for Default App

- Allowed Callback URLS: [http://localhost:4200/](http://localhost:4200/)
- Allowed Logout URLS: [http://localhost:4200/](http://localhost:4200/)
- Allowed Origins (CORS): [http://localhost:4200/](http://localhost:4200/)

That’s it, I think. I must have missed something, since I have the  
**_Unauthorized_** problem

Why do I get **_Unauthorized_**? Are my expectations wrong?

Off-topic: I have a very hard time tagging this post with at least two tags, I think login-experience should be a valid tag, but the search function for tags doesn’t seem to work. “documenation-request” is not a good tag for this post, but I can’t insert another one.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 22, 2023, 6:29pm UTC](https://community.auth0.com/t/problems-getting-started-with-auth0/109355/3 "2023-06-22T18:29:41Z")

</div>

Hi @h.stenstrom,

First off, thanks for the detailed problem statement, that is very helpful.

Let’s take a look at the unauthorized error. Can you pleas confirm that the application you created is registered as a “Single Page App” in the dashboard?

Also, do you see any additional information in the console? Sometimes the unauthorized error will be accompanied by a message that describes the error.

Finally, you can DM me your tenant name and I can take a look at your logs.

Thanks,  
Dan

---

<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:** [July 25, 2023, 4:36pm UTC](https://community.auth0.com/t/problems-getting-started-with-auth0/109355/4 "2023-07-25T16:36:27Z")

</div>

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