Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user object not giving updated value #854

Open
6 tasks done
moinqureshi-ss opened this issue Jan 24, 2024 · 0 comments
Open
6 tasks done

user object not giving updated value #854

moinqureshi-ss opened this issue Jan 24, 2024 · 0 comments
Labels
bug This points to a verified bug in the code

Comments

@moinqureshi-ss
Copy link

moinqureshi-ss commented Jan 24, 2024

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 john@gmail.com i get details of jonh@gmail.com in 'user' object. then if i do login with tony@gmail.com the 'user' object still gives data for jonh@gmail.com instead of tony@gmail.com token from getCredentials() is getting updated though so when i decode the token it is showing tony@gmail.com but the 'user' object is still giving old details.

first login:
image

second login:
image

Reproduction

  1. login with one credentials.
  2. check user object
  3. log in with another credentials.
  4. 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

@moinqureshi-ss moinqureshi-ss added the bug This points to a verified bug in the code label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This points to a verified bug in the code
Projects
None yet
Development

No branches or pull requests

1 participant