You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Checklist
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:
![image](https://private-user-images.githubusercontent.com/94550056/299297044-65ab3cb9-8186-4c9d-a43e-2b9d9a17bb8a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5NjI0OTQsIm5iZiI6MTcyMzk2MjE5NCwicGF0aCI6Ii85NDU1MDA1Ni8yOTkyOTcwNDQtNjVhYjNjYjktODE4Ni00YzlkLWE0M2UtMmI5ZDlhMTdiYjhhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDA2MjMxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAxMDc1ZWUwN2MyYzhmNmZkYmZjYzM4YjY4YjU1OTU2ZThhYjYzNjIzMzk2YWQyNThhNjNlNjJhNjIxYmY5YjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.5S1xwUQcVtmFUwzoiZHvZkQ1qiYRIans0dtIv3NGsVk)
second login:
![image](https://private-user-images.githubusercontent.com/94550056/299297888-7e3c5949-8bcb-4012-a289-bd7e8cf2711e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5NjI0OTQsIm5iZiI6MTcyMzk2MjE5NCwicGF0aCI6Ii85NDU1MDA1Ni8yOTkyOTc4ODgtN2UzYzU5NDktOGJjYi00MDEyLWEyODktYmQ3ZThjZjI3MTFlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDA2MjMxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThlMWI0OTM5ZDJkMTQ1M2YzOWZmMmNhYmMwNzBhY2EzYjIxMDc2M2MzOGNmMWM3MTMwZjA2ZWRmOTIyMGE0ZGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.mFKvE8pX4JfhFO4JgGZuCzSvRKFMyP73g2LVoOXFhzw)
Reproduction
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
The text was updated successfully, but these errors were encountered: