{"id":25332248,"url":"https://github.com/muzafferkadir/google-oauth-token-generator","last_synced_at":"2025-04-08T06:48:13.387Z","repository":{"id":277427972,"uuid":"932398142","full_name":"muzafferkadir/google-oauth-token-generator","owner":"muzafferkadir","description":"Generate Google OAuth access tokens for testing or development...","archived":false,"fork":false,"pushed_at":"2025-02-23T21:09:40.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T06:06:26.052Z","etag":null,"topics":["google","google-api","google-apps-script","google-maps-api","google-sheets"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/google-oauth-token-generator","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/muzafferkadir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-02-13T21:08:43.000Z","updated_at":"2025-02-26T11:40:17.000Z","dependencies_parsed_at":"2025-02-14T14:15:58.296Z","dependency_job_id":null,"html_url":"https://github.com/muzafferkadir/google-oauth-token-generator","commit_stats":null,"previous_names":["muzafferkadir/google-oauth-token-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muzafferkadir%2Fgoogle-oauth-token-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muzafferkadir%2Fgoogle-oauth-token-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muzafferkadir%2Fgoogle-oauth-token-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muzafferkadir%2Fgoogle-oauth-token-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muzafferkadir","download_url":"https://codeload.github.com/muzafferkadir/google-oauth-token-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247792921,"owners_count":20996896,"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":["google","google-api","google-apps-script","google-maps-api","google-sheets"],"created_at":"2025-02-14T04:44:11.190Z","updated_at":"2025-04-08T06:48:13.356Z","avatar_url":"https://github.com/muzafferkadir.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google OAuth Token Generator\n\nA simple web-based tool to generate Google OAuth access tokens. This tool helps developers quickly obtain OAuth tokens for testing and development purposes.\n\n## Installation\n\n```bash\n# Run directly with npx\nnpx google-oauth-token-generator\n\n# Or install globally\nnpm install -g google-oauth-token-generator\ngoogle-oauth-token-generator\n```\n\n## Features\n\n- Simple web interface\n- Automatic browser opening\n- Copy-to-clipboard functionality\n- Token information display\n- Support for all Google API scopes\n- Real-time token validation\n- Configurable port number\n\n## Usage\n\n1. Run the command:\n   ```bash\n   # Using default port (2323)\n   npx google-oauth-token-generator\n\n   # Using custom port\n   npx google-oauth-token-generator --port=3000\n   ```\n\n2. The tool will:\n   - Start a local server (default port: 2323)\n   - Open your default browser automatically\n   - Display the setup instructions\n\n3. Follow the on-screen instructions to:\n   - Set up your Google Cloud Project\n   - Configure OAuth consent screen:\n     - Set User Type as \"External\"\n     - Set Publishing Status to \"In Production\"\n     - Fill in required app information\n   - Create credentials\n   - Generate your token\n\n## Port Configuration\n\n- Default port: 2323\n- To use a different port: `--port=\u003cnumber\u003e`\n- Valid port range: 0-65535\n- Example: `npx google-oauth-token-generator --port=3000`\n\n## OAuth Configuration Requirements\n\n1. **Publishing Status**: Your application must be set to \"In Production\" in the OAuth consent screen\n   - Go to Google Cloud Console → APIs \u0026 Services → OAuth consent screen\n   - Under \"Publishing status\", select \"In Production\"\n   - This is required for public access to your application\n\n2. **User Type**: Must be set to \"External\"\n   - This allows any Google account to authenticate\n   - Internal user type is only for Google Workspace users\n\n3. **Required Information**:\n   - Application name\n   - User support email\n   - Application home page\n   - Authorized domains (if needed)\n   - Developer contact information\n\n## Common Scopes\n\n- `https://www.googleapis.com/auth/userinfo.profile` - User profile information\n- `https://www.googleapis.com/auth/userinfo.email` - User email information\n- `https://www.googleapis.com/auth/calendar` - Google Calendar access\n- `https://www.googleapis.com/auth/drive` - Full Google Drive access\n- `https://www.googleapis.com/auth/gmail.readonly` - Gmail read-only access\n\nFor a complete list of available scopes, visit [Google OAuth 2.0 Scopes](https://developers.google.com/identity/protocols/oauth2/scopes).\n\n## Important Notes\n\n- The application must be run on a web server (localhost is fine for development)\n- You need to configure your Google Cloud Console project properly\n- Some scopes may require verification from Google\n- Always handle tokens securely and never expose them in client-side code\n- Your application must be in \"Production\" status, not \"Testing\"\n- Verification may be required for certain sensitive scopes\n\n## License\n\nMIT\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuzafferkadir%2Fgoogle-oauth-token-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuzafferkadir%2Fgoogle-oauth-token-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuzafferkadir%2Fgoogle-oauth-token-generator/lists"}