{"id":28100361,"url":"https://github.com/tidev/titanium-apple-sign-in","last_synced_at":"2025-05-13T18:33:54.797Z","repository":{"id":37951355,"uuid":"190512142","full_name":"tidev/titanium-apple-sign-in","owner":"tidev","description":"Use the iOS 13+ Apple Sign In API with Titanium","archived":false,"fork":false,"pushed_at":"2023-03-22T21:21:42.000Z","size":3306,"stargazers_count":29,"open_issues_count":34,"forks_count":11,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-24T05:09:18.490Z","etag":null,"topics":["appcelerator","apple-sign-in","ios13","titanium","titanium-module"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/tidev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"tidev","liberapay":"tidev"}},"created_at":"2019-06-06T04:08:57.000Z","updated_at":"2023-05-04T05:39:46.000Z","dependencies_parsed_at":"2023-02-10T06:00:59.620Z","dependency_job_id":null,"html_url":"https://github.com/tidev/titanium-apple-sign-in","commit_stats":null,"previous_names":["appcelerator-modules/titanium-apple-sign-in"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidev%2Ftitanium-apple-sign-in","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidev%2Ftitanium-apple-sign-in/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidev%2Ftitanium-apple-sign-in/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidev%2Ftitanium-apple-sign-in/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tidev","download_url":"https://codeload.github.com/tidev/titanium-apple-sign-in/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254003563,"owners_count":21997904,"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":["appcelerator","apple-sign-in","ios13","titanium","titanium-module"],"created_at":"2025-05-13T18:33:54.682Z","updated_at":"2025-05-13T18:33:54.792Z","avatar_url":"https://github.com/tidev.png","language":"Swift","funding_links":["https://github.com/sponsors/tidev","https://liberapay.com/tidev"],"categories":[],"sub_categories":[],"readme":"# iOS 13+ Apple Sign In in Titanium [![Build Status](https://jenkins.appcelerator.org/buildStatus/icon?job=modules%2Ftitanium-apple-sign-in%2Fmaster)](https://jenkins.appcelerator.org/job/modules/job/titanium-apple-sign-in/job/master/) [![@titanium-sdk/ti.applesignin](https://img.shields.io/npm/v/@titanium-sdk/ti.applesignin.png)](https://www.npmjs.com/package/@titanium-sdk/ti.applesignin)\n\nFull support for iOS 13+ Apple Sign In with Titanium.\n\n## Requirements\n\nThe following project- and OS-requirements are necessary:\n\n- [x] Xcode 11+\n- [x] iOS 13+\n- [x] Titanium SDK 8.0.0+\n\n## Example\n\nThis module was designed to follow a similar scheme like Ti.Facebook and Ti.GoogleSignIn.\n\n```js\nvar AppleSignIn = require('ti.applesignin');\n\nAppleSignIn.addEventListener('login', function (event) {\n  if (!event.success) {\n    alert(event.error);\n    return;\n  }\n\n  Ti.API.warn(event);\n});\n\nvar win = Ti.UI.createWindow({\n  backgroundColor: '#fff'\n});\n\nwin.addEventListener('open', () =\u003e {\n  AppleSignIn.checkExistingAccounts();\n});\n\nvar btn = AppleSignIn.createLoginButton({ width: 280, height: 38 });\n\nbtn.addEventListener('click', function () {\n  AppleSignIn.authorize();\n});\n\nwin.add(btn);\nwin.open();\n```\n\n## API's\n\n### Methods\n\n#### `checkExistingAccounts()`\n\nChecks for existing accounts (if available)\n\n#### `createLoginButton()`\n\nCreates a new localized login button.\n\n#### `authorize({ scopes })`\n\nStarts an authorization flow with an optional array of scoped. Defaults to all scopes (`fullName` and `email`).\n\n#### `getCredentialState(userId, callback)`\n\nFetches the current credential state with a given user-id (received from the `event.profile.userId`  key of the `login` event).\nThe result is returned to the `state` parameter of the `callback` and can be authorized, revoked, transferred or unknown.\n\n### Events\n\n#### `login`\n\nThe login event with the user's `profile`.\n\n## Installation\n\n- [x] Add the following entitlements to your project:\n```xml\n\u003cios\u003e\n\t\u003c!-- ... --\u003e\n\t\n\t\u003cplist\u003e\n\t\t\u003cdict\u003e\n\t\t\t\u003c!-- ... --\u003e\n\t\t\u003c/dict\u003e\n\t\u003c/plist\u003e\n\t\n\t\u003centitlements\u003e\n\t\t\u003cdict\u003e\n\t\t\t\u003ckey\u003ecom.apple.developer.applesignin\u003c/key\u003e\n\t\t\t\u003carray\u003e\n\t\t\t\t\u003cstring\u003eDefault\u003c/string\u003e\n\t\t\t\u003c/array\u003e\n\t\t\u003c/dict\u003e\n\t\u003c/entitlements\u003e\n\u003c/ios\u003e\n```\n- [x] Make sure your server is eligible to send mails to the Apple Sign In provider service.\n\n\n## License\n\nMIT\n\n## Author\n\nHans Knöchel\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidev%2Ftitanium-apple-sign-in","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftidev%2Ftitanium-apple-sign-in","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidev%2Ftitanium-apple-sign-in/lists"}