# Brand new application, using Vue sample app, Error: Unauthorized after login

**URL:** <https://community.auth0.com/t/brand-new-application-using-vue-sample-app-error-unauthorized-after-login/123055>\
**Category:** Get Help\
**Tags:** auth0-spa-js, sdks-quickstarts\
**Created:** [December 14, 2023, 3:29am UTC](https://community.auth0.com/t/brand-new-application-using-vue-sample-app-error-unauthorized-after-login/123055 "2023-12-14T03:29:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamreisnz](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adamreisnz/32/28593_2.png) [@adamreisnz](https://community.auth0.com/u/adamreisnz)\
**Post date:** [December 14, 2023, 3:29am UTC](https://community.auth0.com/t/brand-new-application-using-vue-sample-app-error-unauthorized-after-login/123055/1 "2023-12-14T03:29:37Z")

</div>

Hello, as per the title, I’ve followed the guide to create a new app, everything is working fine, I can go through the login process and it successfully logs in my user.

However, after redirect back to the app, it throws and Error: Unauthorized when the auth0 library tried to obtain the token.

I have checked the logs and it comes up with a “Failed Exchange” error.

Can anyone please advise how to start troubleshooting this or how to fix this.  
I would have thought the out-of-the-box application and Vue sample app would just work without issues.

And before you ask:

- Yes, I have updated the correct domain and credentials
- Yes, I have configured callback URL’s, allowed domains, etc.
- There is not `auth0-vue` tag available

Thank you 🙏

---

<div class="post-metadata">

**Author:** ![adamreisnz](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adamreisnz/32/28593_2.png) [@adamreisnz](https://community.auth0.com/u/adamreisnz)\
**Post date:** [December 14, 2023, 3:38am UTC](https://community.auth0.com/t/brand-new-application-using-vue-sample-app-error-unauthorized-after-login/123055/2 "2023-12-14T03:38:43Z")

</div>

Ok I figured out the solution. You have to go to the **Credentials** tab and change Authentication Methods to **None**

This should be the default for Single Page Application apps imo since it doesn’t work with a client secret.

---

<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:** [December 28, 2023, 3:38am UTC](https://community.auth0.com/t/brand-new-application-using-vue-sample-app-error-unauthorized-after-login/123055/3 "2023-12-28T03:38:56Z")

</div>

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