A properly set up app client is required for mobile apps and other non-web platforms to allow your
app to interact with the Privy API. Please follow this
guide to configure an app client.
Initializing Privy
Initialize Privy as early as possible in your game’s lifecycle by calling PrivyManager.Initialize(PrivyConfig config):
using Privy.Core;using Privy.Config;var config = new PrivyConfig{ AppId = "YOUR_APP_ID", ClientId = "YOUR_CLIENT_ID"};var privy = PrivyManager.Initialize(config);// Awaiting GetAuthState ensures the SDK is fully initializedvar authState = await privy.GetAuthState();
Configuration
The configuration fields for the PrivyConfig are:
Be sure to initialize Privy only once at the start of your game. Initializing multiple instances
of Privy will result in unexpected errors.
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.