Skip to main content

Initializing PnP Unreal Engine SDK

After Installation, the next step to using Web3Auth is to Initialize the SDK. However, In Unreal, the Initialization happens through the blueprint.

Web3Auth Initialization Blueprint

web3auth unreal initialization

Arguments

Web3AuthOptions

The Web3Auth Constructor takes a class Web3AuthOptions as input. This class has the following arguments.

ParameterDescription
clientIdYour Web3Auth Client ID. You can get it from Web3Auth Dashboard under project details. It's a mandatory field of type FString
networkDefines the Web3Auth network. It's a mandatory field of type Network.
redirectUrlURL that Web3Auth will redirect API responses upon successful authentication from browser. It's a mandatory field of type FString.
whiteLabel?WhiteLabel options for web3auth. It helps you define custom UI, branding, and translations for your brand app. It takes FWhiteLabelData as a value.
loginConfig?Login config for the custom verifiers. It takes TMap<FString, FLoginConfigItem> as a value.
useCoreKitKey?Use CoreKit Key to get core kit key. It's an optional field with default value as false.
chainNamespace?Chain Namespace [EIP155 and SOLANA]. It takes FChainNamespace as a value.
mfaSettings?Allows developers to configure the Mfa settings for authentication. It takes FMfaSettings as a value.
sessionTime?It allows developers to configure the session management time. Session Time is in seconds, default is 86400 seconds which is 1 day. sessionTime can be max 7 days

Usage

The following is the graph to set Web3Auth actor configuration. The graph currently uses string values to add parameters to blueprint blocks, but you can connect the values coming from different UI components.

unreal example blueprint