KRTirtho / spotube

🎧 Open source Spotify client that doesn't require Premium nor uses Electron! Available for both desktop & mobile!
https://spotube.krtirtho.dev/
Other
26.34k stars 1.08k forks source link

Function for interactive login in the browser [BETA] #1660

Open SantiiRepair opened 1 week ago

SantiiRepair commented 1 week ago

https://github.com/KRTirtho/spotube/assets/94815926/67130b47-d097-451d-9aa7-be04c56d4556

Peperehobbits01 commented 3 days ago

I mean, this is much easier to connect to a account that way... and I mean, a lot of programs are doing this thing. Tho, it may cause issues whit flatpaks... but I mean, I have looked at it, and well that's pretty good :)

SantiiRepair commented 1 day ago

I mean, this is much easier to connect to a account that way... and I mean, a lot of programs are doing this thing. Tho, it may cause issues whit flatpaks... but I mean, I have looked at it, and well that's pretty good :)

It would be interesting for windows as it goes to the general public who do not know or find it complicated to activate using cookies.

Peperehobbits01 commented 5 hours ago

I mean, this is much easier to connect to a account that way... and I mean, a lot of programs are doing this thing. Tho, it may cause issues whit flatpaks... but I mean, I have looked at it, and well that's pretty good :)

It would be interesting for windows as it goes to the general public who do not know or find it complicated to activate using cookies.

I mean, there is (not a lot) but non advanced user on Linux to, and I mean, it's not because you know how tu use a terminal in Linux that you know how to use the dev tools of your web browser but yeah, it's good for the average user. And it's kind of a thing on the Android version already.

KRTirtho commented 1 hour ago

This is a near perfect solution but the issue is with downloading a standalone chrome binary just to login. While 100MBs is not a lot nowadays but the user still has to download it and then they can login. Only if there was a way to use the default browser to do this. I already tried with desktop_webview_window but that doesn't give us access to cookies which is what we need in order to authenticate. Puppeteer luckily gives us that option but it still has to download the chrome/chromium binary