redux-auth icon indicating copy to clipboard operation
redux-auth copied to clipboard

Design Module to persist credentials properly

Open ChrisCates opened this issue 8 years ago • 2 comments

I have patched the code with a npm module redux-auth-patch. It appears there are some issues with persisting authHeaders in the cookies.

the isApiRequest() will break if you do not clear cookies upon new entry.

I'd also suggest a more procedural type approach to the session-storage.js file. It was quite confusing tracing the issue and then identifying that the issue was in fact in fetch.js not session-storage.js.

ChrisCates avatar Jun 28 '16 00:06 ChrisCates

PRs welcome.

lynndylanhurley avatar Jul 14 '16 08:07 lynndylanhurley

I agree with you about the code organization stuff. Working on cleaning things up with the next release (v0.0.6)

lynndylanhurley avatar Jul 19 '16 22:07 lynndylanhurley