vitalif / grive2

Google Drive client with support for new Drive REST API and partial sync
http://yourcmc.ru/wiki/Grive2
GNU General Public License v2.0
1.52k stars 141 forks source link

Storing ID and secret in a file #292

Closed proski closed 3 years ago

proski commented 4 years ago

Would it be possible to store the last used ID and secret in a file in the local mirror directoy? It could be .grive or perhaps a new file, .grive_secret, just make sure to use restrictive file permissions on it. When a different ID or secret are supplied, perhaps they should be updated if the authentication is successful. Alternatively, there should be a switch to save them.

proski commented 4 years ago

Also, when grive -a is run with the new ID and secret, it doesn't update .grive in the current directory, so the authentication fails.

vitalif commented 3 years ago

I'm not sure when I merged a PR for it but now it's persisted.