# React-native user object data from previous login

**URL:** <https://community.auth0.com/t/react-native-user-object-data-from-previous-login/125539>\
**Category:** Get Help\
**Tags:** login-prompt-new-experience, login-experience\
**Created:** [January 24, 2024, 6:23am UTC](https://community.auth0.com/t/react-native-user-object-data-from-previous-login/125539 "2024-01-24T06:23:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![moinqureshi.ss](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/moinqureshi.ss/32/49039_2.png) [@moinqureshi.ss](https://community.auth0.com/u/moinqureshi.ss)\
**Post date:** [January 24, 2024, 6:23am UTC](https://community.auth0.com/t/react-native-user-object-data-from-previous-login/125539/1 "2024-01-24T06:23:59Z")

</div>

when user logs in i get the the user details and credentials using getCredentials. but then if i do login again i am getting user details of previous login though i am getting updated details in getCredentials. for ex. i login with john doe i get details of john doe in ‘user’ object. then if i do login using tony stark then i am getting details of john doe instead of tony stark in ‘user’ object. while in the getCredential i get the expected values

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [January 24, 2024, 1:47pm UTC](https://community.auth0.com/t/react-native-user-object-data-from-previous-login/125539/2 "2024-01-24T13:47:17Z")

</div>

Hi @moinqureshi.ss

Welcome to the Auth0 Community

Thank you for posting your question. From your description, it looks like your application has an error with caching or state management. Can you check if your application is appropriately clearing sessions after each logout and state in your application? Let me know if this solved your issue.

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [January 30, 2024, 9:28pm UTC](https://community.auth0.com/t/react-native-user-object-data-from-previous-login/125539/3 "2024-01-30T21:28:04Z")

</div>

Hi @moinqureshi.ss

I’m closing this topic. Please feel free to reach out if you will have more questions.

Thanks  
Dawid

---

<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:** [February 13, 2024, 9:28pm UTC](https://community.auth0.com/t/react-native-user-object-data-from-previous-login/125539/4 "2024-02-13T21:28:22Z")

</div>

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