{"id":20747723,"url":"https://github.com/MetaMask/single-factor-auth-swift","last_synced_at":"2025-12-12T06:03:37.644Z","repository":{"id":153687309,"uuid":"598502377","full_name":"Web3Auth/single-factor-auth-swift","owner":"Web3Auth","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-20T06:12:37.000Z","size":166,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-28T12:03:31.910Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Web3Auth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.md","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":"2023-02-07T08:42:10.000Z","updated_at":"2025-03-20T06:12:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"bba5d671-c302-4206-992f-eeffce8e11fb","html_url":"https://github.com/Web3Auth/single-factor-auth-swift","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Web3Auth%2Fsingle-factor-auth-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Web3Auth%2Fsingle-factor-auth-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Web3Auth%2Fsingle-factor-auth-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Web3Auth%2Fsingle-factor-auth-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Web3Auth","download_url":"https://codeload.github.com/Web3Auth/single-factor-auth-swift/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251311333,"owners_count":21569009,"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":"2024-11-17T08:14:12.781Z","updated_at":"2025-12-12T06:03:37.310Z","avatar_url":"https://github.com/Web3Auth.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Single-Factor-Auth-Swift\n\n\u003e Web3Auth is where passwordless auth meets non-custodial key infrastructure for Web3 apps and wallets. By aggregating OAuth (Google, Twitter, Discord) logins, different wallets and innovative Multi Party Computation (MPC) - Web3Auth provides a seamless login experience to every user on your application.\n\nWeb3Auth Single Factor Auth is the SDK that gives you the ability to start with just one key (aka, Single Factor) with Web3Auth, giving you the flexibility of implementing your own UI and UX.\n\n\n## 📖 Documentation\n\nCheckout the official [Web3Auth Documentation](https://web3auth.io/docs/sdk/core-kit/sfa-ios) to get started.\n\n\n## Features\n- Multi network support\n- All API's support async await \n\n## 🔗 Installation\nYou can install the SingleFactorAuth Swift using Swift Package Manager.\n\n```\n...\ndependencies: [\n    ...\n    .package(url: \"https://github.com/Web3Auth/single-factor-auth-swift/\", from: \"9.0.0\")\n],\n...\n```\n\n\n## Getting Started\nInitialize the `SingleFactAuth` class by passing `Web3AuthOptions`\n\n```swift\nlet singleFactorAuthArgs = SingleFactorAuthArgs(\n        clientId: \"\u003cYour Client Id\u003e\",\n        network: Web3AuthNetwork.SAPPHIRE_MAINNET\n)\nlet singleFactoreAuth = SingleFactorAuth(params: Web3AuthOptions)\n```\n\nUse the `getKey` function to login the user and get the privateKey and public address for the given user.\n\n```swift\nlet idToken = try generateIdToken(email: TORUS_TEST_EMAIL)\nlet loginParams = LoginParams(\n        verifier: TEST_VERIFIER, \n        verifierId: TORUS_TEST_EMAIL, \n        idToken: idToken\n)\n\nlet torusKey = try await singleFactoreAuth.connect(loginParams: loginParams)\n```\n\n\n## Requirements\n- iOS 14 or above is required \n\n## Examples\n\nCheckout the examples for Single Factor Auth Swift in our [examples repository](https://github.com/Web3Auth/web3auth-core-kit-examples/tree/main/single-factor-auth-ios)\n\n\n## 💬 Troubleshooting and Support\n\n- Have a look at our [Community Portal](https://community.web3auth.io/) to see if anyone has any questions or issues you might be having. Feel free to reate new topics and we'll help you out as soon as possible.\n- Checkout our [Troubleshooting Documentation Page](https://web3auth.io/docs/troubleshooting) to know the common issues and solutions.\n- For Priority Support, please have a look at our [Pricing Page](https://web3auth.io/pricing.html) for the plan that suits your needs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMetaMask%2Fsingle-factor-auth-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMetaMask%2Fsingle-factor-auth-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMetaMask%2Fsingle-factor-auth-swift/lists"}