# User undefined since sdk updates

**URL:** <https://community.auth0.com/t/user-undefined-since-sdk-updates/65994>\
**Category:** Get Help\
**Created:** [July 12, 2021, 1:28pm UTC](https://community.auth0.com/t/user-undefined-since-sdk-updates/65994 "2021-07-12T13:28:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gutisAlex](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gutisalex/32/14464_2.png) [@gutisAlex](https://community.auth0.com/u/gutisAlex)\
**Post date:** [July 12, 2021, 1:28pm UTC](https://community.auth0.com/t/user-undefined-since-sdk-updates/65994/1 "2021-07-12T13:28:39Z")

</div>

Hey, I updated auth-react to 1.5.0 and auth0-spa-js to 1.16.1 and all of the sudden I get undefined error whereever I use the user hook:

![image](https://global.discourse-cdn.com/auth0/original/3X/e/f/ef4394f11644d0545549bcaf7e525045375a75ce.png)

---

<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:** [July 12, 2021, 2:07pm UTC](https://community.auth0.com/t/user-undefined-since-sdk-updates/65994/2 "2021-07-12T14:07:24Z")

</div>

Hey there!

In order to sort it out the most effectively, can I ask you to open this as a GitHub issue in one of the mentioned repos so we can work on that directly with the repo maintainers? Thank you!

Once you have a link to it make sure to share it with us so we can ping them.

---

<div class="post-metadata">

**Author:** ![gutisAlex](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gutisalex/32/14464_2.png) [@gutisAlex](https://community.auth0.com/u/gutisAlex)\
**Post date:** [July 12, 2021, 2:17pm UTC](https://community.auth0.com/t/user-undefined-since-sdk-updates/65994/3 "2021-07-12T14:17:03Z")

</div>

I just took a look into this example:

> <https://github.com/auth0/auth0-react/blob/master/examples/cra-react-router/src/Nav.tsx>

and it looks like it just needs a questionmark behind the user…

---

<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:** [July 12, 2021, 2:19pm UTC](https://community.auth0.com/t/user-undefined-since-sdk-updates/65994/4 "2021-07-12T14:19:36Z")

</div>

oh perfect! Glad you have figured it out and thanks for sharing with the rest of community!

---

<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:** [July 27, 2021, 2:19pm UTC](https://community.auth0.com/t/user-undefined-since-sdk-updates/65994/5 "2021-07-27T14:19:46Z")

</div>

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