{"id":24529595,"url":"https://github.com/maxschmeling/apple-id-client-secret","last_synced_at":"2025-04-14T17:11:08.123Z","repository":{"id":40757579,"uuid":"277934761","full_name":"maxschmeling/apple-id-client-secret","owner":"maxschmeling","description":"Create client secret JWT for Apple ID","archived":false,"fork":false,"pushed_at":"2023-01-06T10:57:21.000Z","size":1014,"stargazers_count":3,"open_issues_count":12,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T05:51:03.225Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/maxschmeling.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":"2020-07-07T22:26:53.000Z","updated_at":"2023-02-14T16:03:53.000Z","dependencies_parsed_at":"2023-02-05T22:30:40.535Z","dependency_job_id":null,"html_url":"https://github.com/maxschmeling/apple-id-client-secret","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxschmeling%2Fapple-id-client-secret","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxschmeling%2Fapple-id-client-secret/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxschmeling%2Fapple-id-client-secret/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxschmeling%2Fapple-id-client-secret/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxschmeling","download_url":"https://codeload.github.com/maxschmeling/apple-id-client-secret/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525135,"owners_count":21118616,"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":"2025-01-22T07:38:31.264Z","updated_at":"2025-04-14T17:11:08.088Z","avatar_url":"https://github.com/maxschmeling.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Apple ID Client Secret\n\nThe Apple ID REST API for exchanging authorization codes or refresh tokens for access tokens requires a client secret in the form of a signed JWT. This simple library will generate the signed JWT using minimal configuration.\n\nImplementation based on [Generate and Validate Tokens](https://developer.apple.com/documentation/sign_in_with_apple/generate_and_validate_tokens) documentation from Apple and built using the [jsonwebtoken](https://www.npmjs.com/package/jsonwebtoken) package from Auth0.\n\n## Install\n\n```bash\n$ npm install apple-id-client-secret\n```\n\nor\n\n```bash\n$ yarn add apple-id-client-secret\n```\n\n## Usage\n\n```typescript\nimport { createClientSecret } from \"apple-id-client-secret\"\n\nconst clientSecret: string = createClientSecret({\n  keyId: \"{key ID from Apple}\",\n  bundleId: \"com.example\",\n  teamId: \"{team ID frmo Apple}\",\n  privateKey: `-----BEGIN PRIVATE KEY-----\n{your}\n{private}\n{key}\n-----END PRIVATE KEY-----`;\n});\n```\n\n## License\n\nThis project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxschmeling%2Fapple-id-client-secret","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxschmeling%2Fapple-id-client-secret","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxschmeling%2Fapple-id-client-secret/lists"}