35
loading...
This website collects cookies to deliver better user experience
"redux-token-auth": "git+https://github.com/ziaulrehman40/redux-token-auth.git#9812f831a84968dba593b22b3f48b50b322e2351"
in our package.json
, but we bumped into this issue, for which we had to take this route.redux-token-auth
sets some data in redux under reduxTokenAuth.currentUser
key to help us identify if auth attempt is in progress, or has been completed and failed/succeeded. But default data points ( isLoading
and isSignedIn
) were not working as expected for some edge cases, after a lot of debugging(and nearly giving up on the whole custom clone thing), i found an un-documented data point, which helped us with everything, it is hasVerificationBeenAttempted
, using this and incorporating it in our checks fixed the issue. This is the only part which seemed a bit hacky, but it was to be used in only 1-2 places, so didn’t seem like a big issue.