# Vue.js Log out not working

**URL:** <https://community.auth0.com/t/vue-js-log-out-not-working/42896>\
**Category:** Get Help\
**Created:** [May 12, 2020, 11:56pm UTC](https://community.auth0.com/t/vue-js-log-out-not-working/42896 "2020-05-12T23:56:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Plainnn](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/plainnn/32/18657_2.png) [@Plainnn](https://community.auth0.com/u/Plainnn)\
**Post date:** [May 12, 2020, 11:56pm UTC](https://community.auth0.com/t/vue-js-log-out-not-working/42896/1 "2020-05-12T23:56:43Z")

</div>

Hi, I’ve copied the quick start guide and have this method to log out

```
async logout() {
      this.$auth.logout({
        returnTo: window.location.origin,
        clientID: 'XXXXXXXXXX'
      });
    }

```

It does nothing and nothign changes, however if i go to my [https://lol-stat.eu.auth0.com/v2/logout](https://lol-stat.eu.auth0.com/v2/logout) it works fine. Any ideas? all my URLs are correct on the backend and i don’t have a / at the end.

---

<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:** [May 13, 2020, 1:31pm UTC](https://community.auth0.com/t/vue-js-log-out-not-working/42896/2 "2020-05-13T13:31:10Z")

</div>

Hey there @Plainnn!

Can you share with us the link to the quickstart you use so we can reproduce? Thanks!

---

<div class="post-metadata">

**Author:** ![Plainnn](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/plainnn/32/18657_2.png) [@Plainnn](https://community.auth0.com/u/Plainnn)\
**Post date:** [May 13, 2020, 2:08pm UTC](https://community.auth0.com/t/vue-js-log-out-not-working/42896/4 "2020-05-13T14:08:41Z")

</div>

Hey!

Thanks for the reply, [Auth0 Vue SDK Quickstarts: Login](https://auth0.com/docs/quickstart/spa/vuejs/01-login)

---

<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:** [May 13, 2020, 4:04pm UTC](https://community.auth0.com/t/vue-js-log-out-not-working/42896/5 "2020-05-13T16:04:11Z")

</div>

Let me try to reproduce that and get back to you soon!

---

<div class="post-metadata">

**Author:** ![Plainnn](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/plainnn/32/18657_2.png) [@Plainnn](https://community.auth0.com/u/Plainnn)\
**Post date:** [May 13, 2020, 4:05pm UTC](https://community.auth0.com/t/vue-js-log-out-not-working/42896/7 "2020-05-13T16:05:09Z")

</div>

Dont worry I got it, it appears you cant use a @click on a router-link… Possibly the only thing i’d changed from the quickstart and I broke it… Thanks.

---

<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:** [May 13, 2020, 4:06pm UTC](https://community.auth0.com/t/vue-js-log-out-not-working/42896/8 "2020-05-13T16:06:12Z")

</div>

okok, thanks gotchya!

---

<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:** [May 21, 2020, 9:50am UTC](https://community.auth0.com/t/vue-js-log-out-not-working/42896/9 "2020-05-21T09:50:12Z")

</div>


