{"id":15305150,"url":"https://github.com/eddyverbruggen/nativescript-apple-sign-in","last_synced_at":"2026-03-13T16:32:01.950Z","repository":{"id":34922683,"uuid":"190053226","full_name":"EddyVerbruggen/nativescript-apple-sign-in","owner":"EddyVerbruggen","description":"Sign In With Apple, as seen on WWDC 2019, available with iOS 13","archived":false,"fork":false,"pushed_at":"2023-01-14T01:05:07.000Z","size":4083,"stargazers_count":39,"open_issues_count":40,"forks_count":15,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-23T12:46:04.250Z","etag":null,"topics":["authentication","nativescript","nativescript-plugin","sign-in-with-apple"],"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/EddyVerbruggen.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":"2019-06-03T17:44:33.000Z","updated_at":"2024-05-30T15:54:34.000Z","dependencies_parsed_at":"2023-01-16T23:01:00.416Z","dependency_job_id":null,"html_url":"https://github.com/EddyVerbruggen/nativescript-apple-sign-in","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EddyVerbruggen%2Fnativescript-apple-sign-in","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EddyVerbruggen%2Fnativescript-apple-sign-in/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EddyVerbruggen%2Fnativescript-apple-sign-in/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EddyVerbruggen%2Fnativescript-apple-sign-in/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EddyVerbruggen","download_url":"https://codeload.github.com/EddyVerbruggen/nativescript-apple-sign-in/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222483100,"owners_count":16991557,"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":["authentication","nativescript","nativescript-plugin","sign-in-with-apple"],"created_at":"2024-10-01T07:59:23.833Z","updated_at":"2026-03-13T16:32:01.899Z","avatar_url":"https://github.com/EddyVerbruggen.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Sign In with Apple](https://developer.apple.com/sign-in-with-apple/), for NativeScript\n\n[![NPM version][npm-image]][npm-url]\n[![Downloads][downloads-image]][npm-url]\n[![Twitter Follow][twitter-image]][twitter-url]\n\n[npm-image]:https://img.shields.io/npm/v/nativescript-apple-sign-in.svg\n[npm-url]:https://npmjs.org/package/nativescript-apple-sign-in\n[downloads-image]:https://img.shields.io/npm/dm/nativescript-apple-sign-in.svg\n[twitter-image]:https://img.shields.io/twitter/follow/eddyverbruggen.svg?style=social\u0026label=Follow%20me\n[twitter-url]:https://twitter.com/eddyverbruggen\n\n\u003e Plugin version 2+ is compatible with NativeScript 7+. If you use an older NativeScript version, please use plugin version 1.1.0.\n\n## Requirements\n\n- Go to [the Apple developer website](https://developer.apple.com/account/resources/identifiers/list) and create a new app identifier with the \"Sign In with Apple\" Capability enabled. Make sure you sign your app with a provisioning profile using that app identifier.\n- Open your app's `App_Resources/iOS` folder and [add this](https://github.com/EddyVerbruggen/nativescript-apple-sign-in/blob/master/demo/app/App_Resources/iOS/app.entitlements) (or append) to a file named `app.entitlements`. \n\n## Installation\n\n```shell\ntns plugin add nativescript-apple-sign-in\n```\n\n## Demo app\n\nIf you're stuck or want a quick demo of how this works, check out the demo app:\n\n```shell\ngit clone https://github.com/EddyVerbruggen/nativescript-apple-sign-in\ncd nativescript-apple-sign-in/src\nnpm run demo.ios\n```\n\n## API\n\n### `isSignInWithAppleSupported`\n\nSign In with Apple was added in iOS 13, so make sure to call this function before showing a \"Sign In with Apple\" button in your app.\nOn iOS \u003c 13 and Android this will return `false`.\n\n```typescript\nimport { isSignInWithAppleSupported } from \"nativescript-apple-sign-in\";\n\nconst supported: boolean = isSignInWithAppleSupported();\n```\n\n### `signInWithApple`\n\nNow that you know \"Sign In with Apple\" is supported on this device, you can have the\nuser sign themself in (after they pressed a nice button for instance).\n\n```typescript\nimport { signInWithApple, SignInWithAppleAuthorization } from \"nativescript-apple-sign-in\";\n\nsignInWithApple(\n    {\n        // by default you don't get these details, but if you provide these scopes you will (and the user will get to choose which ones are allowed)\n        scopes: [\"EMAIL\", \"FULLNAME\"]\n    })\n    .then((result: SignInWithAppleAuthorization) =\u003e {\n        console.log(\"Signed in, credential: \" + result.credential);\n        console.log(\"Signed in, familyName: \" + result.credential.fullName.familyName);\n        // you can remember the user to check the sign in state later (see 'getSignInWithAppleState' below)\n        this.user = result.credential.user;\n    })\n    .catch(err =\u003e console.log(\"Error signing in: \" + err));\n```\n\n### `getSignInWithAppleState`\n\n\u003e ⚠️ This does not seem to work on a simulator!\n\nIf you want to know the current Sign In status of your user, you can pass the `user` (id) you acquired previously.\n\n```typescript\nimport { getSignInWithAppleState } from \"nativescript-apple-sign-in\";\n\nconst user: string = \"the id you got back from the signInWithApple function\";\n\ngetSignInWithAppleState(user)\n    .then(state =\u003e console.log(\"Sign in state: \" + state))\n    .catch(err =\u003e console.log(\"Error getting sign in state: \" + err));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddyverbruggen%2Fnativescript-apple-sign-in","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feddyverbruggen%2Fnativescript-apple-sign-in","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddyverbruggen%2Fnativescript-apple-sign-in/lists"}