# Vue - $auth.isAuthenticated always false

**URL:** <https://community.auth0.com/t/vue-auth-isauthenticated-always-false/55078>\
**Category:** Get Help\
**Created:** [December 18, 2020, 9:00am UTC](https://community.auth0.com/t/vue-auth-isauthenticated-always-false/55078 "2020-12-18T09:00:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilmoi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ilmoi/32/26376_2.png) [@ilmoi](https://community.auth0.com/u/ilmoi)\
**Post date:** [December 18, 2020, 9:00am UTC](https://community.auth0.com/t/vue-auth-isauthenticated-always-false/55078/1 "2020-12-18T09:00:50Z")

</div>

I’ve tried following 2 tutorials for vue+auth0 ([quickstart](https://auth0.com/docs/quickstart/spa/vuejs/01-login#configure-logout-urls) and [this](https://auth0.com/blog/beginner-vuejs-tutorial-with-user-login/#Setting-Up)) and both get me to the same place: `$auth.isAuthenticated` remains `false` no matter what I do. As in, I can login successfully, but the variable stays `false`.

Tried:

- Different browsers (chrome, brave, safari)
- Copying tutorial code from github / writing my own from scratch

The result of this is that `log in` button never changes to `log out`, even after I’ve successfully loggen in. I don’t see any errors in console.

It can’t be a dependency version problem (like suggested [here](https://community.auth0.com/t/callback-vue-this-auth-is-undefined/8476)) because the issue persists with code cloned from tutorial repo [here](https://github.com/auth0-blog/vue-events-auth) directly.

Any ideas?🙂

---

<div class="post-metadata">

**Author:** ![ilmoi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ilmoi/32/26376_2.png) [@ilmoi](https://community.auth0.com/u/ilmoi)\
**Post date:** [December 18, 2020, 9:46am UTC](https://community.auth0.com/t/vue-auth-isauthenticated-always-false/55078/2 "2020-12-18T09:46:44Z")

</div>

Solved using the last aswer [here](https://community.auth0.com/t/auth-loggedin-always-false-on-demo-app/42138).  
**tl;dr change Auth0 setting from Regular Web Application to Single Page Application**

---

<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:** [December 18, 2020, 9:55am UTC](https://community.auth0.com/t/vue-auth-isauthenticated-always-false/55078/3 "2020-12-18T09:55:59Z")

</div>

Perfect! Glad to hear that and thanks for sharing with the rest of community!

---

<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:** [January 2, 2021, 9:56am UTC](https://community.auth0.com/t/vue-auth-isauthenticated-always-false/55078/4 "2021-01-02T09:56:02Z")

</div>

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