prasmussen / gdrive

Google Drive CLI Client
MIT License
8.99k stars 1.19k forks source link

Keep having to Authenticate #269

Open CompClash opened 7 years ago

CompClash commented 7 years ago

I am trying to use gdrive and upload to multiple gdrive accounts. I thought I could switch by having different folders for each one where the token would be stored. I have one for my personal account, one for my school account and then one for a cloud account. I am using the command gdrive -c hcc "command" to upload or whatever I need to do for my school account then I use gdrive "commands" for my personal. On my personal account I have no problems but when I try to upload to my school or my cloud it keeps making me authenticate. EVERYTIME! so annoying. Is there anyway I can fix this so I can just authenticate 1 time for each account?

CompClash commented 7 years ago

Every time I upload a new file I have to go through the auth process. So annoying. It even says GDrive has authentication but when I type gdrive -c cloud upload path it ask me to authenticate AGAIN!

CompClash commented 7 years ago

I found out that if I do everything from the startup directory, it works. I guess I have to be in the same directory the folder for the current gdrive I'm trying to use, so if I do gdrive -c cloud upload while I'm in cd ~ it works but if I cd home/user/blaa/blaa and try to do it. It always asks for authentication. Is there any way I can change this, so I can use cd and still not have to authenticate?