{"id":19136637,"url":"https://github.com/hackergens/loginwithapple","last_synced_at":"2026-05-16T11:33:12.257Z","repository":{"id":154816000,"uuid":"321131074","full_name":"HackerGens/LoginWithApple","owner":"HackerGens","description":"Login With Apple","archived":false,"fork":false,"pushed_at":"2020-12-29T07:53:33.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-25T15:05:06.275Z","etag":null,"topics":["apple-login","apple-login-swiftui","ios14","ios14-login","login","swiftui","swiftui-login"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/HackerGens.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}},"created_at":"2020-12-13T18:22:40.000Z","updated_at":"2021-10-20T07:36:07.000Z","dependencies_parsed_at":"2023-04-26T07:17:42.162Z","dependency_job_id":null,"html_url":"https://github.com/HackerGens/LoginWithApple","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HackerGens/LoginWithApple","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HackerGens%2FLoginWithApple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HackerGens%2FLoginWithApple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HackerGens%2FLoginWithApple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HackerGens%2FLoginWithApple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HackerGens","download_url":"https://codeload.github.com/HackerGens/LoginWithApple/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HackerGens%2FLoginWithApple/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33100863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"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":["apple-login","apple-login-swiftui","ios14","ios14-login","login","swiftui","swiftui-login"],"created_at":"2024-11-09T06:35:04.122Z","updated_at":"2026-05-16T11:33:12.239Z","avatar_url":"https://github.com/HackerGens.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Login With Apple in ios 14.You can use this code in swiftui. if you facing any issue comment me below.\n\n        VStack {\n            if #available(iOS 14.0, *) {\n                SignInWithAppleButton(\n                    .signIn,\n                    onRequest: { request in\n                        // 1\n                        request.requestedScopes = [.fullName, .email]\n                        \n                        let appleIDProvider = ASAuthorizationAppleIDProvider()\n                            let request = appleIDProvider.createRequest()\n                            request.requestedScopes = [.fullName, .email]\n                    },\n                    \n                    onCompletion: { (result) in\n                        switch result {\n                        case .success(let authorization):\n                            //Handle autorization\n                            \n                            if let appleIDCredential = authorization.credential as? ASAuthorizationAppleIDCredential {\n                                let userId = appleIDCredential.user\n                                let identityToken = appleIDCredential.identityToken\n                                let authCode = appleIDCredential.authorizationCode\n                                let email = appleIDCredential.email\n                                let givenName = appleIDCredential.fullName?.givenName\n                                let familyName = appleIDCredential.fullName?.familyName\n                                let state = appleIDCredential.state\n                                \n                                print(userId)\n                                print(identityToken)\n                                print(authCode)\n                                print(email)\n                                print(givenName)\n                                print(familyName)\n                                print(state)\n                                // Here you have to send the data to the backend and according to the response let the user get into the app.\n                              \n                            }\n                            break\n                        case .failure(let error):\n                            //Handle error\n                            break\n                        }\n                    }\n                )\n            } else {\n                // Fallback on earlier versions\n            }\n        }.frame(width:300,height: 60).background(Color.orange.opacity(0.4)).cornerRadius(10).padding([.top], 5)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackergens%2Floginwithapple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackergens%2Floginwithapple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackergens%2Floginwithapple/lists"}