{"id":19303037,"url":"https://github.com/meteorrn/oauth-apple","last_synced_at":"2026-06-13T18:35:50.468Z","repository":{"id":102478997,"uuid":"401889110","full_name":"meteorrn/oauth-apple","owner":"meteorrn","description":"Accounts Apple for Meteor React Native","archived":false,"fork":false,"pushed_at":"2024-02-21T09:47:25.000Z","size":1317,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-02-24T01:51:29.464Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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-09-01T01:13:58.000Z","updated_at":"2021-09-01T03:20:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"5272a239-692c-41b6-b9c9-4b554366706b","html_url":"https://github.com/meteorrn/oauth-apple","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/meteorrn/oauth-apple","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meteorrn%2Foauth-apple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meteorrn%2Foauth-apple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meteorrn%2Foauth-apple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meteorrn%2Foauth-apple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meteorrn","download_url":"https://codeload.github.com/meteorrn/oauth-apple/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meteorrn%2Foauth-apple/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34296380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-11-09T23:24:47.829Z","updated_at":"2026-06-13T18:35:50.197Z","avatar_url":"https://github.com/meteorrn.png","language":"JavaScript","funding_links":["https://github.com/sponsors/jankapunkt"],"categories":[],"sub_categories":[],"readme":"# [Draft] Accounts Apple for Meteor React Native.\n\n\n**Currently, this package only works for iOS apps.**\n\n## Prerequisites\n\n- You are using React Native version `0.60` or higher.\n\n- (iOS only) You have setup react-native iOS development environment on your machine (Will only work on Mac). If not, please follow the official React Native documentation for getting started: [React Native getting started documentation](https://facebook.github.io/react-native/docs/getting-started).\n\n- (iOS only) You are using Xcode version `11` or higher. This will allow you to develop using iOS version `13` and higher, when the APIs for Sign In with Apple became available.\n\n- **Once you're sure you've met the above, please follow our [Initial development environment setup](https://github.com/invertase/react-native-apple-authentication/blob/master/docs/INITIAL_SETUP.md) guide.**\n\n## Installation\n\nIn your react native app, run the following command to install it:\n\n```shell\nnpm install @meteorrn/oauth-apple\n```\n\nIn your meteor app, make sure you have installed the following packages:\n\n```shell\nmeteor add accounts-base accounts-password quave:apple-oauth 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?.apple) {\n        process.env.OAUTH_APPLE_CLIENT_ID = Meteor.settings.private.OAUTH.apple.CLIENT_ID;\n        process.env.OAUTH_APPLE_MOBILE_CLIENT_ID = Meteor.settings.private.OAUTH.apple.MOBILE_CLIENT_ID;\n        process.env.OAUTH_APPLE_SECRET = Meteor.settings.private.OAUTH.apple.SECRET;\n        process.env.OAUTH_APPLE_TEAM_ID = Meteor.settings.private.OAUTH.apple.TEAM_ID;\n        process.env.OAUTH_APPLE_KEY_ID = Meteor.settings.private.OAUTH.apple.KEY_ID;\n        process.env.OAUTH_APPLE_REDIRECT_URI = Meteor.settings.private.OAUTH.apple.REDIRECT_URI;\n    } else {\n        console.warn('[App name] - Apple OAuth settings are not configured.');\n    \tprocess.env.OAUTH_APPLE_CLIENT_ID = '';\n    \tprocess.env.OAUTH_APPLE_MOBILE_CLIENT_ID = '';\n    \tprocess.env.OAUTH_APPLE_SECRET = '';\n    \tprocess.env.OAUTH_APPLE_TEAM_ID = '';\n    \tprocess.env.OAUTH_APPLE_KEY_ID = '';\n    \tprocess.env.OAUTH_APPLE_REDIRECT_URI = '';\n    }\n}\n\nServiceConfiguration.configurations.upsert({ service: 'apple' }, {\n    $set: {\n        nativeClientId: process.env.OAUTH_APPLE_MOBILE_CLIENT_ID,\n        clientId: process.env.OAUTH_APPLE_CLIENT_ID,\n        teamId: process.env.OAUTH_APPLE_TEAM_ID,\n        keyId: process.env.OAUTH_APPLE_KEY_ID,\n        secret: process.env.OAUTH_APPLE_SECRET,\n        redirectUri: process.env.OAUTH_APPLE_REDIRECT_URI\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      \"apple\": {\n        \"MOBILE_CLIENT_ID\": \"\u003c your app id (mobile) \u003e\",\n        \"CLIENT_ID\": \"\u003c your service id (for web) \u003e\",\n        \"TEAM_ID\": \"yourTeamId\",\n        \"KEY_ID\": \"yourKeyId\",\n        \"SECRET\": \"-----BEGIN PRIVATE KEY-----\\nABC\\nABC\\nABC\\nABC\\n-----END PRIVATE KEY-----\",\n        \"REDIRECT_URI\": \"https://abc.def/_oauth/apple\"\n      }\n    }\n  }\n}\n```\n\n## Usage\n\n\n### Login\n\n```js\nimport { Component } from 'react';\nimport { View } from 'react-native';\nimport { Platform } from 'react-native';\nimport Meteor from '@meteorrn/core';\nimport '@meteorrn/oauth-apple';\nimport AppleButton from './path/to/customAppleButton';\n\nexport default class Login extends Component {\n\n    handleAppleLogin() {\n        try {\n            Meteor.loginWithApple((error)=\u003e{\n                if (!error) {\n    \t            //Do anything\n                } else {\n    \t            console.error('There was an error in login with Apple: ', error);\n                }\n            });\n            // login success, then do anything\n        } catch (exception) {\n            // error in login with Apple\n            console.error(exception);\n        }\n    }\n\n    render() {\n        return (\n            \u003cView\u003e\n                {Platform.OS === 'ios' \u0026\u0026 \u003cAppleButton onPress={ handleAppleLogin }/\u003e}\n            \u003c/View\u003e\n        );\n    }\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeteorrn%2Foauth-apple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeteorrn%2Foauth-apple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeteorrn%2Foauth-apple/lists"}