{"id":14968483,"url":"https://github.com/Web3Auth/single-factor-auth","last_synced_at":"2025-10-26T02:31:16.694Z","repository":{"id":162056802,"uuid":"636592136","full_name":"Web3Auth/single-factor-auth","owner":"Web3Auth","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-28T04:03:33.000Z","size":11934,"stargazers_count":6,"open_issues_count":13,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-30T03:22:42.183Z","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":null,"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":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":"2023-05-05T07:44:54.000Z","updated_at":"2024-10-28T04:03:36.000Z","dependencies_parsed_at":"2024-04-15T12:58:46.698Z","dependency_job_id":"f3c055a9-86bf-48c9-afa3-80cf8ceb07c8","html_url":"https://github.com/Web3Auth/single-factor-auth","commit_stats":null,"previous_names":["web3auth/single-factor-auth"],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Web3Auth%2Fsingle-factor-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Web3Auth%2Fsingle-factor-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Web3Auth%2Fsingle-factor-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Web3Auth%2Fsingle-factor-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Web3Auth","download_url":"https://codeload.github.com/Web3Auth/single-factor-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238247984,"owners_count":19440879,"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-09-24T13:40:00.094Z","updated_at":"2025-10-26T02:31:11.005Z","avatar_url":"https://github.com/Web3Auth.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web3Auth Single Factor Auth\n\n[![npm version](https://img.shields.io/npm/v/@web3auth/single-factor-auth?label=%22%22)](https://www.npmjs.com/package/@web3auth/single-factor-auth/v/latest)\n[![minzip](https://img.shields.io/bundlephobia/minzip/@web3auth/single-factor-auth?label=%22%22)](https://bundlephobia.com/result?p=@web3auth/single-factor-auth@latest)\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## 📖 Documentation\n\nCheckout the official [Web3Auth Documentation](https://web3auth.io/docs/sdk/core-kit/sfa) to get started.\n\n## 💡 Features\n\n- JWT based Web3 Authentication Service\n- Fully decentralized, non-custodial key infrastructure\n- End to end Whitelabelable solution\n- Threshold Cryptography based Key Reconstruction\n- Multi Factor Authentication Setup \u0026 Recovery (Includes password, backup phrase, device factor editing/deletion etc)\n- Support for WebAuthn \u0026 Passwordless Login\n- Support for connecting to multiple wallets\n- DApp Active Session Management\n\n...and a lot more\n\n## 🔗 Installation\n\n```shell\nnpm install --save @web3auth/single-factor-auth\n```\n\n## ⚡ Quick Start\n\n### Get your Client ID from Web3Auth Dashboard\n\nHop on to the [Web3Auth Dashboard](https://dashboard.web3auth.io/) and create a new project. Use the Client ID of the project to start your integration.\n\n![Web3Auth Dashboard](https://camo.githubusercontent.com/15b4c47aed7958ed46b82d4e1cc882931fa378dc42328f67759007a341f593de/68747470733a2f2f6769746875622d70726f64756374696f6e2d757365722d61737365742d3632313064662e73332e616d617a6f6e6177732e636f6d2f363936323536352f3237323737393436342d30343366363338332d653637312d346161352d383066622d6563383763353639653561622e706e67)\n\n### Initialize Web3Auth for your preferred blockchain\n\nWeb3Auth needs to initialize as soon as your app loads up to enable the user to log in. Preferably done within a constructor, initialization is the step where you can pass on all the configurations for Web3Auth you want. A simple integration for Ethereum blockchain will look like this:\n\n**Note**\nThis package can only be used with verifiers created on the developer dashboard.\n\n```js\nimport { Web3Auth } from \"@web3auth/single-factor-auth\";\nimport { EthereumPrivateKeyProvider } from \"@web3auth/ethereum-provider\";\n\n//Initialize within your constructor\nconst web3auth = new Web3Auth({\n  clientId: \"\", // Get your Client ID from Web3Auth Dashboard\n  web3AuthNetwork: \"mainnet\",\n  usePnPKey: false, // Setting this to true returns the same key as PnP Web SDK.\n  // By default, this SDK returns CoreKitKey.\n});\n\nconst chainConfig: {\n  chainNamespace: \"eip155\",\n  chainId: \"0x1\",\n  rpcTarget: \"https://rpc.ankr.com/eth\",\n};\n\nconst provider = new EthereumPrivateKeyProvider({ config: { chainConfig } })\n\nawait web3auth.init(provider);\n```\n\n### Login your User\n\nOnce you're done initialising, just create a button that triggers login with the JWT and verifier details.\n\n```js\nawait web3auth.connect({\n  verifier: \"verifier-name\", // e.g. `web3auth-sfa-verifier` replace with your verifier name, and it has to be on the same network passed in init().\n  verifierId: \"verifier-id-value\", // e.g. `Yux1873xnibdui` or `name@email.com` replace with your verifier id(sub or email)'s value.\n  idToken: \"JWT Token\", // replace with your newly created unused JWT Token.\n});\n```\n\n## 🩹 Examples\n\nCheckout the examples for your preferred blockchain and platform in our [examples repository](https://github.com/Web3Auth/web3auth-core-kit-examples/tree/main/single-factor-auth)\n\n## 🌐 Demo\n\nCheckout the [Web3Auth Demo](https://w3a.link/one-key-example) to see how Web3Auth SFA can be used in your application.\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%2FWeb3Auth%2Fsingle-factor-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWeb3Auth%2Fsingle-factor-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWeb3Auth%2Fsingle-factor-auth/lists"}