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

Fix browser-cookies error in clientOnly mode #86

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

betoharres
Copy link

@betoharres betoharres commented Sep 19, 2016

Fix #77 without tests
It fix clientOnly mode parsing undefined variables and fix modals not showing because
of undefined variables
Check bed6b3b commit message for more info

After getting the initialCredentials, the lib was trying to persist data
using undefined variables and returning a undefined user.

Also, the variables `firstTimeLogin` and `mustResetPassword`
were never set in the clientOnly mode, so the actionsCreator related to
them was never being fired due the conditional statement requiring these
variables to be set.

The parseResponse method was refactored to allow a optional callback in
order to be reused in the applyConfig method as well.
@lynndylanhurley
Copy link
Owner

Thanks @betoharres - I'll review this today 👍

@betoharres
Copy link
Author

Thanks a bunch! I was starting in React/ES6 world when I wrote that commit
if you need anything you can post a comment or send me an email

@jclif
Copy link

jclif commented Apr 8, 2017

Any update on this?

@betoharres
Copy link
Author

I don't think so. Are you still facing the same probelms?

@jclif
Copy link

jclif commented Apr 9, 2017

@betoharres Yeah :(

@betoharres
Copy link
Author

@jclif could you create a test repo so I can clone to see what can I do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lib always using cookies
3 participants