Replies: 2 comments 3 replies
-
I created my concept https://github.com/ShayBoxs-Forks/rspotify/commit/362b1ebe8e69712b9f2994f8bd95a2bae199e63a?diff=unified |
Beta Was this translation helpful? Give feedback.
0 replies
-
Great point! It's much better to ask the developer to copy/paste the URL into the terminal. You could make a PR to add this |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Why copy/paste the URL or Code into the terminal, why not bind a simple tcp listener for the callback url?
Add a parameter
addr: Option<SocketAddr>
toprompt_for_token(&url, "127.0.0.1:8888");
If provided, bind a listener, here's an example using just std::net and possibly std::io
If it fails to bind or return a valid code within X requests, fallback to stdin input, or alternatively, create duplicate functions for this purpose and leave the existing ones as-is.
Beta Was this translation helpful? Give feedback.
All reactions