# 401 error when calling token endpoint with custom domain (vue setup)

**URL:** <https://community.auth0.com/t/401-error-when-calling-token-endpoint-with-custom-domain-vue-setup/110170>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [June 28, 2023, 1:59pm UTC](https://community.auth0.com/t/401-error-when-calling-token-endpoint-with-custom-domain-vue-setup/110170 "2023-06-28T13:59:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eva.karagiannakou](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/eva.karagiannakou/32/34622_2.png) [@eva.karagiannakou](https://community.auth0.com/u/eva.karagiannakou)\
**Post date:** [June 28, 2023, 1:59pm UTC](https://community.auth0.com/t/401-error-when-calling-token-endpoint-with-custom-domain-vue-setup/110170/1 "2023-06-28T13:59:21Z")

</div>

Hello,  
I am having some issues with logging into our platform while using a custom domain and we are using auth0/auth0-vue to set it up. The issue is that when we call the POST https://{my-custom-domain}/oauth/token endpoint, we get a 401 response: {“error”:“access\_denied”,“error\_description”:“Unauthorized”}. The dashboard logs don’t give much information either about what the issue could be:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/7/5/75756be971939a808a01f3b36051d51ddc651643.png)

Do you know what might be causing the issue?

Thank you!  
Eva

---

<div class="post-metadata">

**Author:** ![eva.karagiannakou](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/eva.karagiannakou/32/34622_2.png) [@eva.karagiannakou](https://community.auth0.com/u/eva.karagiannakou)\
**Post date:** [June 28, 2023, 2:11pm UTC](https://community.auth0.com/t/401-error-when-calling-token-endpoint-with-custom-domain-vue-setup/110170/2 "2023-06-28T14:11:32Z")

</div>

So, the solution to my issue was not intuitive but would like to add it here just in case anyone else has the same problem. So I navigated to application\>my-application\>Credentials and just clicked on the “Save” button, without changing any of the options:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/7/0/70f7f64c8dfd5db473c745be9a4759b02adf958d.png)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 7, 2023, 8:41am UTC](https://community.auth0.com/t/401-error-when-calling-token-endpoint-with-custom-domain-vue-setup/110170/3 "2023-07-07T08:41:58Z")

</div>

Thanks a lot for sharing it with the rest of community!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 7, 2023, 8:42am UTC](https://community.auth0.com/t/401-error-when-calling-token-endpoint-with-custom-domain-vue-setup/110170/4 "2023-07-07T08:42:00Z")

</div>


