# Lock getUserInfo() returns empty result

**URL:** <https://community.auth0.com/t/lock-getuserinfo-returns-empty-result/13735>\
**Category:** Get Help\
**Created:** [July 29, 2018, 2:02pm UTC](https://community.auth0.com/t/lock-getuserinfo-returns-empty-result/13735 "2018-07-29T14:02:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![grom](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/grom/32/8276_2.png) [@grom](https://community.auth0.com/u/grom)\
**Post date:** [July 29, 2018, 2:02pm UTC](https://community.auth0.com/t/lock-getuserinfo-returns-empty-result/13735/1 "2018-07-29T14:02:57Z")

</div>

I’m using Lock for Web v11 in my React app. It works good. But unfortunately I can’t get user information in some cases.  
Description:

1. I call lock.checkSession() for existing user to get a new Token. (Old token is still valid, but I hope it is not a problem)
2. Right after (1) I call lock.getUserInfo(newAccessToken, …) where newAccessToken is a result of (1)
3. The result of getUserInfo() is {} (empty object). But if I set old access token as a parameter, sometimes I receive valid user information.

Can anyone help me with advice? Is it possible to get a new Token before the old one is really expired?

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:** [October 25, 2018, 7:18am UTC](https://community.auth0.com/t/lock-getuserinfo-returns-empty-result/13735/2 "2018-10-25T07:18:59Z")

</div>

Hey @grom !

When it comes to getting a new token before the old one is really expired, the answer is: refresh token. You can read more info about it here:

- [Refresh Tokens](https://auth0.com/docs/tokens/refresh-token/current)
- [Understanding Refresh Tokens](https://auth0.com/learn/refresh-tokens/)

Let me know if that helps!

---

<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:** [August 27, 2019, 1:39pm UTC](https://community.auth0.com/t/lock-getuserinfo-returns-empty-result/13735/3 "2019-08-27T13:39:26Z")

</div>

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