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

make hoodie.account.signOut() resolve when offline & no local changes #194

Closed
gr2m opened this issue Nov 30, 2013 · 2 comments
Closed

make hoodie.account.signOut() resolve when offline & no local changes #194

gr2m opened this issue Nov 30, 2013 · 2 comments

Comments

@gr2m
Copy link
Member

gr2m commented Nov 30, 2013

right now, when the user has an account, hoodie.account.signOut() tries to send a DELETE request. If it fails, it gets rejected. That makes sense, because we are using cookies for authentication and they only get removed when the DELETE request succeeds. If we would ignore the failing request, we would remove all local data and reset the user's hash & username, but towards CouchDB, the user would still have a valid session.

Not really sure how to solve this right now.

@gr2m
Copy link
Member Author

gr2m commented Nov 30, 2013

related to this: allow to hoodie.account.signOut({ignoreLocalChanges: true}), even when offline.

@gr2m
Copy link
Member Author

gr2m commented May 7, 2016

closing in favor of hoodiehq/hoodie-client#82

@gr2m gr2m closed this as completed May 7, 2016
@gr2m gr2m removed the later label May 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants