ankit / stylebot

Change the appearance of the web instantly
https://stylebot.dev/
MIT License
1.38k stars 205 forks source link

Syncing among devices always requires sign-in[Bug] #717

Open jiabaoyu opened 1 year ago

jiabaoyu commented 1 year ago

Describe the bug

I've been using Stylebot on several PCs and Macs, syncing styles using google drive seems always require a re-sign-in. BTW, the login window seems not a standard browser window, and it's not possible to auto-fill.

Browser

Microsoft Edge 103.0.1264.77 release x64, on windows11 21H2 22000.795

waldyrious commented 1 year ago

I'm having the same issue (I think), though it's happening in two different browsers in the same machine: Firefox and Brave. Brave is a little better behaved in that the extension seems to store the credentials throughout the same session, and only asks me to sign in again if I restart the browser. Firefox, on the other hand, asks me to sign in every single time I try to sync, which is rather annoying.

Browsers and operating system:

dhry commented 1 year ago

Happens for me too and has been happening ever since I can remember. Copying text I wrote in my review in the Chrome Store:

The only problem I have with it now is the manual syncing to Google Drive. It works, but it always asks me to login to Google first. If I sync again immediately after login it works, but a VERY short time afterward, or after I close and reopen the browser. it forgets my login and I have to login again to sync. Is there any way to persist the login to Google for longer, so I don't have to constantly sign in to Google each time I want to manusync? Just save the login and keep it for 30 days or something like other apps. Or even better, automatically sync in the background?

joosniz commented 1 year ago

Noticed that it's opening in its own window, so it doesn't matter that you're already logged in to your google account in the browser, and ended up here after googling the issue.

Would be pretty great if the syncing worked like Violentmonkey, you log in once, and it syncs at regular intervals with a manual option to sync faster.

joshseltzer commented 1 year ago

It seems to work quite well for me in Chrome, though I don't fully understand what special handling the Chrome browser has. I think this could be done by storing the access token as a cookie, that should at least make it prompt you less often. If there is interest I can work on implementing this, it shouldn't be too hard!