fenhl / bitbar-twitch

A BitBar plugin showing live Twitch streams of followed users
Other
11 stars 0 forks source link

Improve sign-in flow #2

Open fenhl opened 2 years ago

fenhl commented 2 years ago

Currently, the OAuth callback URL redirects to https://github.com/fenhl/bitbar-twitch/wiki/oauth-landing with an access token in the fragment that you then have to manually copy out of the URL bar and paste into a JSON file. This could be improved by registering a URL handler for the plugin, but that seems to be rather complicated. Maybe a nice middle-ground would be a callback page with a big button to copy the token via JS?

fenhl commented 1 year ago

In SwiftBar, the plugin could run a local web server to handle OAuth callbacks. See Mido's House Multiworld for prior art.