hoodiehq / hoodie-account-client

:dog: Account client API for the browser
https://hoodiehq.github.io/hoodie-account-client
Apache License 2.0
11 stars 24 forks source link

account.signOut({ignoreLocalChanges: true}) #137

Open gr2m opened 7 years ago

gr2m commented 7 years ago

There are valid use cases when we want to allow users to be able to clear all data in the browser without sending any requests to the server.

By default, we try to sync all local changes first, then send a request to invalidate the session. If either fails, account.signOut() rejects with a request or authorization header.

But

ignoreLocalChanges does not communicate that we don’t send a request at all, but I think it communicates pretty well the implication to the user