-
Notifications
You must be signed in to change notification settings - Fork 80
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
Custom storage never used #37
Comments
There's something wrong with the npm package. Set it as
in your |
I don't think that's the issue, the code I quoted is from the master branch |
Can you confirm that /dist/services/auth.js is the same on both versions? npm https://registry.npmjs.org/redux-token-auth/-/redux-token-auth-0.19.0.tgz
repo https://github.com/kylecorbelli/redux-token-auth/blob/master/dist/services/auth.js#L53
|
I'm not using npm. The code is from the master branch here: redux-token-auth/src/actions.ts Line 133 in 8c5a8fe
|
From what I can observe, passing custom |
When setting a custom storage engine vie the config
the passed custom storage is never used.
I think this is due to this line
redux-token-auth/src/actions.ts
Line 133 in 8c5a8fe
Since
flushGetRequests
is only present in react native localStorage, the code always fallback toAsyncLocalStorage
, which itself default towindow.localStorage
.Shouldn't that ternary operator expression reversed ?
The text was updated successfully, but these errors were encountered: