{"id":17736656,"url":"https://github.com/parro-it/electron-google-oauth","last_synced_at":"2025-04-30T08:12:52.344Z","repository":{"id":36832549,"uuid":"41139450","full_name":"parro-it/electron-google-oauth","owner":"parro-it","description":"Google api access token in electron","archived":false,"fork":false,"pushed_at":"2018-03-02T09:42:02.000Z","size":25,"stargazers_count":56,"open_issues_count":3,"forks_count":16,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-30T08:12:43.381Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/parro-it.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}},"created_at":"2015-08-21T06:34:04.000Z","updated_at":"2021-04-02T13:54:40.000Z","dependencies_parsed_at":"2022-07-20T11:17:17.811Z","dependency_job_id":null,"html_url":"https://github.com/parro-it/electron-google-oauth","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Felectron-google-oauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Felectron-google-oauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Felectron-google-oauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Felectron-google-oauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parro-it","download_url":"https://codeload.github.com/parro-it/electron-google-oauth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251666338,"owners_count":21624295,"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":[],"created_at":"2024-10-26T00:23:56.630Z","updated_at":"2025-04-30T08:12:52.321Z","avatar_url":"https://github.com/parro-it.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# electron-google-oauth\n\nGet Google api access token using an electron window\nto let the user authorize the app.\n\n[![Travis Build Status](https://img.shields.io/travis/parro-it/electron-google-oauth/master.svg)](http://travis-ci.org/parro-it/electron-google-oauth)\n\n## Installation\n\n```bash\nnpm install --save electron-google-oauth\n```\n\n## Usage\n\n```javascript\n  import electronGoogleOauth from 'electron-google-oauth';\n\n  const browserWindowParams = {\n      'use-content-size': true,\n      center: true,\n      show: false,\n      resizable: false,\n      'always-on-top': true,\n      'standard-window': true,\n      'auto-hide-menu-bar': true,\n      'node-integration': false\n  };\n\n  const googleOauth = electronGoogleOauth(browserWindowParams);\n\n  ( async () =\u003e {\n\n    // retrieve  authorization code only\n    const authCode = await googleOauth.getAuthorizationCode(\n      ['https://www.google.com/m8/feeds'],\n      'your-client-id',\n      'your-client-secret',\n      'your-redirect-uri'\n    );\n    console.dir(authCode);\n\n    // retrieve access token and refresh token\n    const result = await googleOauth.getAccessToken(\n      ['https://www.google.com/m8/feeds'],\n      'your-client-id',\n      'your-client-secret',\n      'your-redirect-uri'\n    );\n    console.dir(result);\n\n  })();\n\n```\n\n## Testing\n\nTo test the library, clone this git repo, then define CLIENTSECRET and CLIENTID environment variables holding your Google API details, then run:\n\n\n```bash\nnpm install\nnpm start\n```\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 Andrea Parodi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Felectron-google-oauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparro-it%2Felectron-google-oauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Felectron-google-oauth/lists"}