{"id":24290482,"url":"https://github.com/dstreet/goauth-cli","last_synced_at":"2026-04-21T06:05:29.748Z","repository":{"id":147350971,"uuid":"192567077","full_name":"dstreet/goauth-cli","owner":"dstreet","description":"Dead-simple Google OAuth v2 login for the command line.","archived":false,"fork":false,"pushed_at":"2023-03-03T01:26:47.000Z","size":64,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T11:58:58.041Z","etag":null,"topics":["cli","google","google-api","oauth2"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dstreet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-18T15:27:51.000Z","updated_at":"2023-02-13T08:20:42.000Z","dependencies_parsed_at":"2023-07-13T18:30:42.005Z","dependency_job_id":null,"html_url":"https://github.com/dstreet/goauth-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dstreet%2Fgoauth-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dstreet%2Fgoauth-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dstreet%2Fgoauth-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dstreet%2Fgoauth-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dstreet","download_url":"https://codeload.github.com/dstreet/goauth-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242135090,"owners_count":20077387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","google","google-api","oauth2"],"created_at":"2025-01-16T11:52:56.165Z","updated_at":"2025-12-07T06:02:36.745Z","avatar_url":"https://github.com/dstreet.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# goauth-cli\n\nDead-simple Google OAuth v2 login for the command line.\n\nGoole OAuth v2 requires that users authenticate with Google via a web interface\nprovided by Google. This tool implements all the steps necessary to get\nthe refresh and access tokens in order to interact with the Google APIs from\nthe command line.\n\n`goauth-cli` generates the login url and immediately opens a web browser to the\ncorrect url. It also starts a temporary webserver to capture the authorization\ncode sent back by Google. Once the login process is complete, the webserver is\nshutdown.\n\n## Install\n\n```\n$ npm i goauth-cli\n```\n\n## Usage\n\n```js\nimport { GoauthCli } from 'goauth-cli'\n\nconst auth = new GoauthCli(CLIENT_ID, CLIENT_SECRET, SCOPES)\nconst authClient = await auth.login()\n```\n\n## Login options\n\n- `callbackport`: The port that the webserver will listen on. Defaults to a\nrandom, available port\n- `callbackPath`: The callback url path. Defaults to `/oauth-callback`.\n\n## License\n\n[Apache License Vesion 2.0](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdstreet%2Fgoauth-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdstreet%2Fgoauth-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdstreet%2Fgoauth-cli/lists"}