# Deployed VueJS Client Invalid Token Error

**URL:** <https://community.auth0.com/t/deployed-vuejs-client-invalid-token-error/7080>\
**Category:** Get Help\
**Tags:** spa, vuejs, webauth\
**Created:** [June 15, 2017, 5:16am UTC](https://community.auth0.com/t/deployed-vuejs-client-invalid-token-error/7080 "2017-06-15T05:16:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebrahim.poorazizi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ebrahim.poorazizi/32/7741_2.png) [@ebrahim.poorazizi](https://community.auth0.com/u/ebrahim.poorazizi)\
**Post date:** [June 15, 2017, 5:16am UTC](https://community.auth0.com/t/deployed-vuejs-client-invalid-token-error/7080/1 "2017-06-15T05:16:45Z")

</div>

I am using WebAuth to authenticate a VueJS app following the quickstart example provided by Auth0. It works fine when run locally, but once I deploy it I get the following error only when I try to login for the first time: `{error: "invalid_token", errorDescription: "Nonce does not match."}`. Now, if I login again with the same credentials I won’t see the error again. I was wondering if this is a bug or I do something wrong.

---

<div class="post-metadata">

**Author:** ![ebrahim.poorazizi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ebrahim.poorazizi/32/7741_2.png) [@ebrahim.poorazizi](https://community.auth0.com/u/ebrahim.poorazizi)\
**Post date:** [June 16, 2017, 3:20am UTC](https://community.auth0.com/t/deployed-vuejs-client-invalid-token-error/7080/2 "2017-06-16T03:20:00Z")

</div>

I just figured out what was wrong with the deployed version. It was not an Auth0 bug, rather it was a web server config issue - in my case nginx. I had both [http://exmple.com](http://exmple.com) and [http://www.example.com](http://www.example.com) as my website’s URLs. Once I configured my web server in a way that it redirects everything to [https://example.com](https://example.com) the issue was gone.

---

<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 2, 2018, 5:54am UTC](https://community.auth0.com/t/deployed-vuejs-client-invalid-token-error/7080/3 "2018-03-02T05:54:40Z")

</div>


