Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use rookie for seamless login #988

Open
1 task done
thewh1teagle opened this issue Jan 1, 2024 · 5 comments
Open
1 task done

Use rookie for seamless login #988

thewh1teagle opened this issue Jan 1, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@thewh1teagle
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Pain

The login process isn't convenient, so I'm suggeting a feature to improve it

Suggested solution

You can use the library I created called rookie for extracting the cookies from the web browsers and login seamlessly.
https://github.com/thewh1teagle/rookie

Useful resources

No response

Additional information

No response

@thewh1teagle thewh1teagle added the enhancement New feature or request label Jan 1, 2024
@kvba0000
Copy link

kvba0000 commented Jan 1, 2024

Or you could use something mobile version of this app has - opening new window with Spotify login page where you can login to your account, and app could grab these cookies when logged in. (I was genuenly curious why it's a thing on mobile but not on PC)

@thewh1teagle
Copy link
Author

@kbvivi
Sounds much better approach.
Do you have idea how to do something like that in a good way?
In terms of:

  1. finding the right browser
  2. open the specific webpage
  3. detect successful login and grab the cookie

@kvba0000
Copy link

kvba0000 commented Jan 2, 2024

@kbvivi Sounds much better approach. Do you have idea how to do something like that in a good way? In terms of:

1. finding the right browser

2. open the specific webpage

3. detect successful login and grab the cookie

App could probably just could take advantage of webviews to show Spotify login page in separate window that is not specifically some browser and then when app detects navigation - it will grab cookies from that webview. So basically the same as mobile version has but on PC
Sadly I can't do pull request with it myself because I don't have much knowledge about this specific language.

@ShayBox
Copy link

ShayBox commented Feb 1, 2024

I came to suggest the same approach as Rookie as I've used that library before, but I don't think a similar library exists for Dart, it would have to be created.

The easier approach is going to be using web view or some form of controlled browser environment to have the user log in and extract the cookie after.

@KRTirtho
Copy link
Owner

KRTirtho commented Feb 2, 2024

Flutter desktop has no Webview support. Although it's planned but it's stuck on PlatformViews support.
Which allows to overlay anything over Flutter UI. Flutter ios and Android has support for this but for desktop it's yet to be implemented.

flutter/flutter#41722
flutter/flutter#41724
flutter/flutter#31713

Although there's library like desktop_weview_windows and webview_windows, these don't expose any API to get the cookies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants