# Last Remembered login - invalid token

**URL:** <https://community.auth0.com/t/last-remembered-login-invalid-token/8760>\
**Category:** Get Help\
**Tags:** invalid\_token, last-login, token, remember-last-login\
**Created:** [November 16, 2017, 2:39pm UTC](https://community.auth0.com/t/last-remembered-login-invalid-token/8760 "2017-11-16T14:39:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EdZz](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@EdZz](https://community.auth0.com/u/EdZz)\
**Post date:** [November 16, 2017, 2:39pm UTC](https://community.auth0.com/t/last-remembered-login-invalid-token/8760/1 "2017-11-16T14:39:39Z")

</div>

I’ve got a small issue with the last login feature of the lock widget. When a user has successfully logs in and the proceeds to log out, but then tries to login again, the last login feature is invoked, great! However, when i do click on the user that was just logged out and error is raised in the browsers console

Error Message:

```
{error: "invalid_token", errorDescription: "`state` does not match."}

```

Strangely enough, the official Auth0 site Lock Widget behaves differently, in that once logged out, the last remembered login is used, but forces the user to login again - makes sense.

I’m not sure how to start debugging this, but any help is most appreciated!

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [November 24, 2017, 7:07pm UTC](https://community.auth0.com/t/last-remembered-login-invalid-token/8760/2 "2017-11-24T19:07:12Z")

</div>

You should update the question with additional information to help reproduce this, in particular:

- confirm that you’re using Lock embedded in the client application itself;
- Lock version being used and how it is configured;
- what does the logout action in your client application perform? Does it only clear the local session, does it call any endpoint in Auth0?

---

<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:57am UTC](https://community.auth0.com/t/last-remembered-login-invalid-token/8760/3 "2018-03-02T05:57:26Z")

</div>


