Closed vwxyzjn closed 5 years ago
The worker needs to achieve the following tasks
[ ] Given the user token, Bitwarden CLI's data.json
, and Bitwarden CLI's session key, perform the backup. When done, upload the file to Google Drive, and schedule the next execution date.
[ ] Refresh the user tokens when they are about to expire.
The scheduler needs to achieve the following tasks
[ ] Login the user through Google and store his tokens
[ ] Login the user to Bitwarden and store his session key and data.json
, which lives in BITWARDENCLI_APPDATA_DIR
environment variable.
Consider this library: https://github.com/RichardKnop/machinery