Skip to main content

Using Unity SDK

Web3Auth provides a comprehensive set of functions to handle authentication, user management, and blockchain interactions in your Unity applications. These functions allow you to implement features like user login, multi-factor authentication, private key retrieval, and wallet services with minimal effort. Each function is designed to handle a specific aspect of Web3Auth functionality, making it easy to integrate into your Unity projects.

List of Functions

tip

For detailed usage, configuration options, and code examples, refer to the dedicated documentation page for each function.

Authentication Functions

Function NameDescription
login()Logs in the user with the selected login provider.
logout()Logs out the user from the current session.

User Management Functions

Function NameDescription
getUserInfo()Retrieves the authenticated user's information.

Private Key Functions

Function NameDescription
getPrivKey()Retrieve the user's secp256k1 private key for EVM-compatible chains.
getEd25519PrivKey()Retrieve the user's ed25519 private key for chains like Solana, Near, Algorand.

Security Functions

Function NameDescription
enableMFA()Enables Multi-Factor Authentication for the user.

Wallet Services Functions

Function NameDescription
launchWalletServices()Launches the templated wallet UI in WebView.
request()Opens templated transaction screens for signing transactions.