# Auth0 login (small) issue with VueJS

**URL:** <https://community.auth0.com/t/auth0-login-small-issue-with-vuejs/22859>\
**Category:** Get Help\
**Tags:** help, login\
**Created:** [March 20, 2019, 12:16pm UTC](https://community.auth0.com/t/auth0-login-small-issue-with-vuejs/22859 "2019-03-20T12:16:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![l.sciampagna](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/l.sciampagna/32/11900_2.png) [@l.sciampagna](https://community.auth0.com/u/l.sciampagna)\
**Post date:** [March 20, 2019, 12:16pm UTC](https://community.auth0.com/t/auth0-login-small-issue-with-vuejs/22859/1 "2019-03-20T12:16:26Z")

</div>

Hey there,

I’m new with Javascript, VueJS and Auth0 so sorry if my question is obvious!

Things I did:  
-Downloaded files from VueJS tutorial 01-login

> **[Log in | Auth0 Dashboard](https://auth0.auth0.com/u/login/identifier?state=hKFo2SBiU2U2ODM0QnRxQ3lWXzd0T1FMelBYdU44Wmk1alZpWKFur3VuaXZlcnNhbC1sb2dpbqN0aWTZIFZJVnFIaVBUeXc0cjBRYmJYNGRMRXJ1OWRNNlBjTTZWo2NpZNkgekVZZnBvRnpVTUV6aWxoa0hpbGNXb05rckZmSjNoQUk)**

- npm i && npm run serve.

Everything is working fine, when I click on login, I’m logged in, that’s great.  
But If I reload the page, during not even one second, I can see the “log out” label changing to “log in” and “log out” again.

Is it normal ?

---

<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:** [March 20, 2019, 1:42pm UTC](https://community.auth0.com/t/auth0-login-small-issue-with-vuejs/22859/3 "2019-03-20T13:42:01Z")

</div>

Hey there @l.sciampagna!

I have no VueJS knowledge but let me reproduce it and see whether it also behaves for me that way! I’ll get back to you soon!

---

<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:** [March 21, 2019, 4:47pm UTC](https://community.auth0.com/t/auth0-login-small-issue-with-vuejs/22859/4 "2019-03-21T16:47:40Z")

</div>

Hey there @l.sciampagna!

I managed to reproduce it but for me when reloading it was Log in and then my avatar as if I’m logged in. Let me reach out to the person responsible for that quickstart and gather their knowledge on that!

---

<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:** [March 21, 2019, 4:55pm UTC](https://community.auth0.com/t/auth0-login-small-issue-with-vuejs/22859/5 "2019-03-21T16:55:41Z")

</div>

Got the newest info from the front!

So the way it works is that when you hit refresh on the page, it kind of ‘resets’ the auth state. So we use `checkSession` to figure out if the user is actually supposed to be logged in or not. If they are, the state of the app changes to light up all of the stuff you’re supposed to see when you’re logged in.

The delay in doing that makes the UI “pop” a little bit. They’ll initially be logged out, but then as it goes through the auth cycle, it will log in automatically.

Now, you won’t be automatically logged in again after refreshing the page if you’re using an Auth0 app that uses the Google development keys, as `checkSession` doesn’t work in that scenario. It will however, if you log in using some other provider or a username/password.

---

<div class="post-metadata">

**Author:** ![l.sciampagna](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/l.sciampagna/32/11900_2.png) [@l.sciampagna](https://community.auth0.com/u/l.sciampagna)\
**Post date:** [March 21, 2019, 5:06pm UTC](https://community.auth0.com/t/auth0-login-small-issue-with-vuejs/22859/6 "2019-03-21T17:06:29Z")

</div>

Hi,

Thank you for your research!  
Ok it’s clear for me now.

Have a great day!

---

<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:** [March 21, 2019, 5:09pm UTC](https://community.auth0.com/t/auth0-login-small-issue-with-vuejs/22859/7 "2019-03-21T17:09:19Z")

</div>

Glad i was able to help!

---

<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:** [April 5, 2019, 5:09pm UTC](https://community.auth0.com/t/auth0-login-small-issue-with-vuejs/22859/8 "2019-04-05T17:09:24Z")

</div>

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