cli-social-login
Function to login the user and get an oauth access token from github, facebook, twitter, ... using firebase and a local server
It also emits the events cli_begin_login
and cli_logeed_in
so you can discover how many users try to login and then churn away.
Usage
npm i cli-social-login
Use inside your cli application to get an oauth provider token via the browser.
The function will pause until the user logins in the printed localhost url
Currently used in actions-cli to get the github token
// starts a server on localhost to login the user// use your github token