async-oauth2 icon indicating copy to clipboard operation
async-oauth2 copied to clipboard

please move listen_for_code from examples to the main lib

Open bionicles opened this issue 4 years ago • 1 comments

thanks for making such a nice API for oauth!

I'm trying to get it to work, only issue is, the "listen_for_code" function exists in the examples folder and not in the main lib.

Could that be moved over? Then we'd have a built in server to handle the redirects and this could perhaps be a one-stop solution for oauth2 in CLI apps

bionicles avatar Mar 24 '21 13:03 bionicles

Hey, thanks for the kind words.

Sure, it and its dependencies could be punted behind a feature flag. Or even a separate crate (as proven by being in the examples crate). Since it's such a small piece of code I expected people who needed it to just copy it :)

udoprog avatar Mar 24 '21 13:03 udoprog