React-native user object data from previous login

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

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

Hi @moinqureshi.ss

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

Thanks
Dawid

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