{"id":20747726,"url":"https://github.com/web3auth/web3auth-unity-sdk","last_synced_at":"2025-10-17T18:07:12.323Z","repository":{"id":44961773,"uuid":"493109971","full_name":"Web3Auth/web3auth-unity-sdk","owner":"Web3Auth","description":"Web3Auth SDK for Unity3D game engine which supports Android, iOS, and Windows. web3auth-unity-sdk is a client-side library which allows you to authenticate users using Web3Auth on Unity3D game engine.","archived":false,"fork":false,"pushed_at":"2025-04-28T06:07:39.000Z","size":106933,"stargazers_count":38,"open_issues_count":4,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-28T12:03:49.978Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://web3auth.io/docs","language":"C#","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/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,"zenodo":null}},"created_at":"2022-05-17T05:39:30.000Z","updated_at":"2025-04-28T08:30:32.000Z","dependencies_parsed_at":"2023-02-16T17:16:30.629Z","dependency_job_id":"ca0a8011-313a-418f-ac1c-02cf0df5c7ce","html_url":"https://github.com/Web3Auth/web3auth-unity-sdk","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Web3Auth%2Fweb3auth-unity-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Web3Auth%2Fweb3auth-unity-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Web3Auth%2Fweb3auth-unity-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Web3Auth%2Fweb3auth-unity-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Web3Auth","download_url":"https://codeload.github.com/Web3Auth/web3auth-unity-sdk/tar.gz/refs/heads/master","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:13.171Z","updated_at":"2025-10-17T18:07:12.238Z","avatar_url":"https://github.com/Web3Auth.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web3Auth Unity SDK\n\n[![](https://jitpack.io/v/org.torusresearch/web3auth-unity-sdk.svg)](https://jitpack.io/#org.torusresearch/web3auth-unity-sdk)\n\nWeb3Auth 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\n## 📖 Documentation\n\nCheckout the official [Web3Auth Documentation](https://web3auth.io/docs) and [SDK Reference](https://web3auth.io/docs/sdk/unity/) to get started!\n\n## 💡 Features\n- Plug and Play, OAuth 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## ⏪ Requirements\n\n- Unity Editor 2019.4.9f1 or greater\n- .Net Framework 4.x\n\n## ⚡ Installation\n\nDownload [.unitypackage](https://github.com/Web3Auth/web3auth-unity-sdk/releases/latest) and import the package file into your existing Unity3D project.\n\n\u003e You may encounter errors when importing this package into your existing project.\n\u003e `The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)`\n\u003e To fix this problem you need to add the following line into dependencies object which is inside the `Packages/manifest.json` file.\n\n```\n\"com.unity.nuget.newtonsoft-json\": \"2.0.0\"\n```\n\n![Json Dot Net Error](./Images/JsonDotNet%20Error.png)\n\n## 🌟 Configuration\n\nTo get started, open a sample scene `Web3AuthSample` inside `Assets/Plugins/Web3AuthSDK/Samples/Web3AuthSample.scene`\n\nBefore building the application for Android/IOS you need to register the redirect_uri which can be done easily by the tool provided inside the SDK. To achieve that, you need to follow the steps mentioned below.\n\n- Open deep link generator tool provided by Web3Auth Unity SDK from \"Window \u003e Web3Auth \u003e Deep Link Generator\"\n  ![Deep Link Generator](./Images/Deep%20Link%20Generator.png)\n- Enter the redirect_url _(i-e torusapp://com.torus.Web3AuthUnity/auth)_ and click generate.\n  \u003e To use your own client_id , register your app on [https://web3auth.io/](https://web3auth.io/) and replace the client_id inside `Assets/Plugins/Web3AuthSDK/Samples/Web3AuthSample.cs` script.\n\n### Configure an Web3Auth project\n\nGo to [Developer Dashboard](https://dashboard.web3auth.io/), create or select an Web3Auth project:\n\n- Add {{SCHEMA}}://{YOUR_APP_PACKAGE_NAME}://auth to Whitelist URLs.\n  _i-e torusapp://com.torus.Web3AuthUnity/auth_\n- Copy the Project ID for later usage as client_id\n\n## 💥 Initialization \u0026 Usage\n\nIn your sign-in script', create an Web3Auth instance with your Web3Auth project's configurations and configure it like this:\n\n```csharp\nWeb3Auth web3Auth = new Web3Auth(new Web3AuthOptions() {\n  redirectUrl = new Uri(\"torusapp://com.torus.Web3AuthUnity/auth\"),\n    clientId = \"BAwFgL-r7wzQKmtcdiz2uHJKNZdK7gzEf2q-m55xfzSZOw8jLOyIi4AVvvzaEQO5nv2dFLEmf9LBkF8kaq3aErg\",\n    network = Web3Auth.Network.TESTNET,\n    whiteLabel = new WhiteLabelData() {\n      name = \"Web3Auth Sample App\",\n        logoLight = null,\n        logoDark = null,\n        defaultLanguage = \"en\",\n        dark = true,\n        theme = new Dictionary \u003c string, string \u003e {\n          {\n            \"primary\",\n            \"#123456\"\n          }\n        }\n    }\n});\nweb3Auth.onLogin += onLogin;\nweb3Auth.onLogout += onLogout;\nprivate void onLogin(Web3AuthResponse response) {\n    // Handle user signing in\n}\nprivate void onLogout() {\n  // Handle user signing out\n}\n```\n\n### Simulate redirect callback inside Unity Editor\n\nWeb3Auth Unity SDK provides a tool to simulate the redirect callback. To open go to _\"Window \u003e Web3Auth \u003e Debug Deep Link\"_ and paste the redirect uri (it must include the response code)\n\n![Deep Link Debug](./Images/Deep%20Link%20Debug.png)\n\n\n## 🩹 Examples\n\nCheckout the examples for your preferred blockchain and platform in our [examples](https://web3auth.io/docs/examples)\n\n## 🌐 Demo\n\nCheckout the [Web3Auth Demo](https://demo-app.web3auth.io/) to see how Web3Auth can be used in an application.\n\nFurther checkout the [samples folder in the Web3Auth SDK](https://github.com/Web3Auth/web3auth-unity-sdk/tree/master/Assets/Plugins/Web3AuthSDK/Samples) within this repository, which contains a sample app.\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%2Fweb3auth-unity-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb3auth%2Fweb3auth-unity-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb3auth%2Fweb3auth-unity-sdk/lists"}