user object not giving updated value
Checklist
- [X] The issue can be reproduced in the react-native-auth0 sample app (or N/A).
- [X] I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- [X] I have looked into the API documentation and have not found a suitable solution or answer.
- [X] I have searched the issues and have not found a suitable solution or answer.
- [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- [X] I agree to the terms within the Auth0 Code of Conduct.
Description
when i login first time i get correct details in 'user' object from useAuth0 hook. but then if i do login with different credentials the 'user' object still gives details from previous login. though credentials that i get using getCredentials is giving correct data. i am even doing logout(clearSession) before doing second login.
ex. i log in with [email protected] i get details of [email protected] in 'user' object. then if i do login with [email protected] the 'user' object still gives data for [email protected] instead of [email protected] token from getCredentials() is getting updated though so when i decode the token it is showing [email protected] but the 'user' object is still giving old details.
first login:
second login:
Reproduction
- login with one credentials.
- check user object
- log in with another credentials.
- check user object again. it is giving data of 1st credentials.
Additional context
No response
react-native-auth0 version
^3.1.0
React Native version
0.72.4
Expo version
No response
Platform
Android, iOS
Platform version(s)
iOS 17.0, android 12