- Notifications
You must be signed in to change notification settings - Fork10
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.
License
Web3Auth/web3auth-unity-sdk
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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.
Checkout the officialWeb3Auth Documentation andSDK Reference to get started!
- Plug and Play, OAuth based Web3 Authentication Service
- Fully decentralized, non-custodial key infrastructure
- End to end Whitelabelable solution
- Threshold Cryptography based Key Reconstruction
- Multi Factor Authentication Setup & Recovery (Includes password, backup phrase, device factor editing/deletion etc)
- Support for WebAuthn & Passwordless Login
- Support for connecting to multiple wallets
- DApp Active Session Management
...and a lot more
- Unity Editor 2019.4.9f1 or greater
- .Net Framework 4.x
Download.unitypackage and import the package file into your existing Unity3D project.
You may encounter errors when importing this package into your existing project.
The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)To fix this problem you need to add the following line into dependencies object which is inside thePackages/manifest.jsonfile.
"com.unity.nuget.newtonsoft-json": "2.0.0"To get started, open a sample sceneWeb3AuthSample insideAssets/Plugins/Web3AuthSDK/Samples/Web3AuthSample.scene
Before 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.
- Open deep link generator tool provided by Web3Auth Unity SDK from "Window > Web3Auth > Deep Link Generator"

- Enter the redirect_url(i-e torusapp://com.torus.Web3AuthUnity/auth) and click generate.
To use your own client_id , register your app onhttps://web3auth.io/ and replace the client_id inside
Assets/Plugins/Web3AuthSDK/Samples/Web3AuthSample.csscript.
Go toDeveloper Dashboard, create or select an Web3Auth project:
- Add {{SCHEMA}}://{YOUR_APP_PACKAGE_NAME}://auth to Whitelist URLs.i-e torusapp://com.torus.Web3AuthUnity/auth
- Copy the Project ID for later usage as client_id
In your sign-in script', create an Web3Auth instance with your Web3Auth project's configurations and configure it like this:
Web3Authweb3Auth=newWeb3Auth(newWeb3AuthOptions(){redirectUrl=newUri("torusapp://com.torus.Web3AuthUnity/auth"),clientId="BAwFgL-r7wzQKmtcdiz2uHJKNZdK7gzEf2q-m55xfzSZOw8jLOyIi4AVvvzaEQO5nv2dFLEmf9LBkF8kaq3aErg",network=Web3Auth.Network.TESTNET,whiteLabel=newWhiteLabelData(){name="Web3Auth Sample App",logoLight=null,logoDark=null,defaultLanguage="en",dark=true,theme=newDictionary<string,string>{{"primary","#123456"}}}});web3Auth.onLogin+=onLogin;web3Auth.onLogout+=onLogout;privatevoidonLogin(Web3AuthResponseresponse){// Handle user signing in}privatevoidonLogout(){// Handle user signing out}
Web3Auth Unity SDK provides a tool to simulate the redirect callback. To open go to"Window > Web3Auth > Debug Deep Link" and paste the redirect uri (it must include the response code)
Checkout the examples for your preferred blockchain and platform in ourexamples
Checkout theWeb3Auth Demo to see how Web3Auth can be used in an application.
Further checkout thesamples folder in the Web3Auth SDK within this repository, which contains a sample app.
- Have a look at ourCommunity Portal 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.
- Checkout ourTroubleshooting Documentation Page to know the common issues and solutions.
- For Priority Support, please have a look at ourPricing Page for the plan that suits your needs.
About
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.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors11
Uh oh!
There was an error while loading.Please reload this page.

