Xsolla Login SDK UE4
Development repository for the Xsolla Login SDK for Unreal Engine 4 platforms.
- Download the plugin source from the latest release.
- Make a Plugins/XsollaLogin folder under your game project directory and copy plugin source into it.
- Compile your game project normally. Unreal Build Tool will detect the plugins and compile them as dependencies to your game.
- Launch the editor.
- Go to
Project Settings -> Plugins -> Xsolla Login SDKand set
Project Idas Login ID from Publisher Account.
Adds a new user to the database. The user will receive an account confirmation message to the specified e-mail.
Authentication by Username and Password
Authenticates the user by the username and password specified.
Use Login Data
Once user is athenicated the login data is stored in XsollaLoginController. Use
GetLoginData() function to get access to it.
RememberMe option was set the data will be saved locally and loaded from cache once app is started. No manual save is required.
User Password Reset
Resets the user's password.
Check the /Maps/Demo example with plugin usage widget demo inside.
A JWT signed by the secret key is generated for each successfully authenticated user. To make sure that the JWT has not expired and belongs to the user in your project, you need to validate its value.
Validation is optional for client-side, but required for server-side usage (f.e. for in-app pushaces confirmation). See TokenVerificator example.
To enable auto-validation of the JWT on the client-side just set the
VerifyTokenURL parameter with your server validation url, and it will be validated on user login event.