{"id":14954710,"url":"https://github.com/meteorrn/oauth-google","last_synced_at":"2026-01-19T14:32:51.679Z","repository":{"id":102479023,"uuid":"398876032","full_name":"meteorrn/oauth-google","owner":"meteorrn","description":"Accounts Google for Meteor React Native","archived":false,"fork":false,"pushed_at":"2024-02-21T09:43:00.000Z","size":1344,"stargazers_count":1,"open_issues_count":9,"forks_count":0,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-08-08T19:36:38.798Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meteorrn.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},"funding":{"github":["jankapunkt"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2021-08-22T18:55:40.000Z","updated_at":"2024-08-18T01:46:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"77095d2f-09ce-4faf-b0a3-bc4898e30cb9","html_url":"https://github.com/meteorrn/oauth-google","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/meteorrn/oauth-google","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meteorrn%2Foauth-google","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meteorrn%2Foauth-google/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meteorrn%2Foauth-google/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meteorrn%2Foauth-google/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meteorrn","download_url":"https://codeload.github.com/meteorrn/oauth-google/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meteorrn%2Foauth-google/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28571789,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T12:50:50.164Z","status":"ssl_error","status_checked_at":"2026-01-19T12:50:42.704Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-09-24T13:04:57.384Z","updated_at":"2026-01-19T14:32:51.671Z","avatar_url":"https://github.com/meteorrn.png","language":"JavaScript","funding_links":["https://github.com/sponsors/jankapunkt"],"categories":[],"sub_categories":[],"readme":"# [Draft] Accounts Google for Meteor React Native.\n\n## Prerequisites\n\nHave RN \u003e= 0.60.0\n\n## Installation\n\nIn your react native app, run the following command to install it:\n\n```shell\nnpm install @meteorrn/oauth-google\n```\n\nIn your meteor app, make sure you have installed the following packages:\n\n```shell\nmeteor add accounts-base accounts-password accounts-google service-configuration\n```\n\nAnd add this configuration in a server's file:\n\n```js\nimport { Meteor } from 'meteor/meteor';\nimport { ServiceConfiguration } from 'meteor/service-configuration';\n\nif (Meteor.isDevelopment) {\n    if (Meteor.settings.private?.OAUTH?.google) {\n        process.env.OAUTH_GOOGLE_CLIENT_ID = Meteor.settings.private.OAUTH.google.CLIENT_ID;\n        process.env.OAUTH_GOOGLE_SECRET = Meteor.settings.private.OAUTH.google.SECRET;\n    } else {\n        console.warn('[App name] - Google OAuth settings are not configured.');\n    \tprocess.env.OAUTH_GOOGLE_CLIENT_ID = '';\n    \tprocess.env.OAUTH_GOOGLE_SECRET = '';\n    }\n}\n\nServiceConfiguration.configurations.upsert({ service: 'google' }, {\n    $set: {\n        clientId: process.env.OAUTH_GOOGLE_CLIENT_ID,\n        loginStyle: \"popup\",\n        secret: process.env.OAUTH_GOOGLE_SECRET\n    }\n});\n```\n\nMake sure you have environment variables configured in your `settings-settings.json` file:\n\n```json\n{\n  \"private\": {\n    \"ROOT_URL\": \"http://localhost\",\n    \"OAUTH\": {\n      \"google\": {\n        \"CLIENT_ID\": \"yourAppId\",\n        \"SECRET\": \"yourSecret\"\n      }\n    }\n  }\n}\n```\n### Configuration for Android/iOS\n\nThen follow the \n[Android guide](https://github.com/react-native-google-signin/google-signin/blob/master/docs/android-guide.md) and \n[iOS guide](https://github.com/react-native-google-signin/google-signin/blob/master/docs/ios-guide.md)\n\n## Usage\n\nIn the below example, you will have to load your client ids (for Android and iOS) from a `.env` file located in your \nproject root since `react-native-config` is being used.\n\n_projectRoot/.env_\n```\nGOOGLE_CLIENT_ID_IOS=\u003cclient_id_ios\u003e.apps.googleusercontent.com\nGOOGLE_CLIENT_ID_ANDROID=\u003cclient_id_android\u003e.apps.googleusercontent.com\n```\n - _GOOGLE_CLIENT_ID_IOS: You can find it in GoogleServices-Info.plist as CLIENT_ID_\n - _GOOGLE_CLIENT_ID_ANDROID: You can find it in google-services.json as client-\u003e oauth_client -\u003e client_id_\n\n### Login\n\n```js\nimport { Component } from 'react';\nimport { View } from 'react-native';\nimport { Config } from 'react-native-config';\nimport { Platform } from 'react-native';\nimport Meteor from '@meteorrn/core';\nimport '@meteorrn/oauth-google';//this should be inside of meteorrn/core package (PR is needed).\nimport GoogleButton from './path/to/customGoogleButton';\n\nexport default class Login extends Component {\n\n    handleGoogleLogin() {\n    \tconst clientId = Platform.OS === 'ios' ? Config.GOOGLE_CLIENT_ID_IOS : Config.GOOGLE_CLIENT_ID_ANDROID;\n    \tMeteor.loginWithGoogle({ webClientId: clientId }, (error) =\u003e {\n                if (!error) {\n    \t            //Do anything\n                } else {\n    \t            console.error('There was an error in login with Google: ', error);\n                }\n            });\n    }\n\n    render() {\n        return (\n            \u003cView\u003e\n                \u003cGoogleButton onPress={ handleGoogleLogin }/\u003e\n            \u003c/View\u003e\n        );\n    }\n};\n```\n\nIf you want to do **logout**, remember to use this way:\n\n```js\nMeteor.logoutFromGoogle();\n```\n\nThis allows to revoke access from Google Signing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeteorrn%2Foauth-google","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeteorrn%2Foauth-google","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeteorrn%2Foauth-google/lists"}