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

Offline mode #61

Open
orthecreedence opened this Issue May 25, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@orthecreedence
Copy link
Member

orthecreedence commented May 25, 2018

The ability to log in without a server connection.

Turtl already has offline mode if already logged in, and will queue your changes until you have a connection. However, the ability to log in while offline would be extremely useful in limited-connection scenarios.

Things to keep in mind:

  • Would probably store the auth token in the general kv table, and could just compare against that when logging in.
  • Client would try to log in to server first, and if it cannot get a connection, would log in against the locally-stored auth token.
  • It's possble to add a bunch of data in an offline app, and before it syncs, change the user password in another client. The offline client, once online, would have to re-encrypt any entries since it last synced with the new key. We probably need a change-password sync item (I think we have this actually) and need to verify that the core downloads ALL incoming sync items before running outgoing sync items so the offline client can see there was a change-password sync and prompt the re-encryption of all pending keychain entries. Messy.
@orthecreedence

This comment has been minimized.

Copy link
Member Author

orthecreedence commented May 25, 2018

Note that maybe we want to always re-encrypt all pending outgoing keychain entries every time a user logs in? This seems like a pretty safe bet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.