# checkSession never asks for login

**URL:** <https://community.auth0.com/t/checksession-never-asks-for-login/8605>\
**Category:** Get Help\
**Tags:** checkseesion, refresh-tokens, sso\
**Created:** [October 27, 2017, 7:52pm UTC](https://community.auth0.com/t/checksession-never-asks-for-login/8605 "2017-10-27T19:52:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivojinovic](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@ivojinovic](https://community.auth0.com/u/ivojinovic)\
**Post date:** [October 27, 2017, 7:52pm UTC](https://community.auth0.com/t/checksession-never-asks-for-login/8605/1 "2017-10-27T19:52:19Z")

</div>

I’m using 8.10.1 Auth0.js library; calling the `checkSession` ([Auth0.js - Auth0 Docs](https://auth0.com/docs/libraries/auth0js/v8#using-checksession-to-acquire-new-tokens)) to refresh ID token when it expires. I was under impression that when SSO session expires this call will return `login_required` but it never happens. Even when I set SSO session to 1 minute and ID token to 30 second I am able to get new tokens indefinitely and I never receive `login_required`.

Am I doing something wrong?

---

<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 15, 2017, 7:22pm UTC](https://community.auth0.com/t/checksession-never-asks-for-login/8605/2 "2017-11-15T19:22:15Z")

</div>

I could not reproduce the situation you describe and the response I obtained after session expired was `login_required` as expected.

Here’s the steps I did:

1. Set the SSO Cookie Timeout to one minute.
2. Opened a browser window in incognito in order to ensure no previous session would be reused.
3. Performed the authentication flow to establish a session.
4. Immediately performed a `checkSession` call to ensure it worked when the session is available.
5. Waited for the session to expire; I likely waited around one minute and half to two minutes.
6. Performed a `checkSession` call (which failed with `login_required`).

Have in mind that the lifetime of the issued ID token is not relevant for this situation.

---

<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/checksession-never-asks-for-login/8605/3 "2018-03-02T05:57:10Z")

</div>


