react-native-auth0 icon indicating copy to clipboard operation
react-native-auth0 copied to clipboard

user object not giving updated value

Open moinqureshi-ss opened this issue 2 years ago • 0 comments

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

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 avatar Jan 24 '24 11:01 moinqureshi-ss