SDK for Unity (PC, web) / General information
  Back to Docs

SDK for Unity (PC, web)

General information

The solution for user login and registration is based on the Login product. Authentication settings for your project are available in Publisher Account in the Login section.

It is recommended to implement the following authentication logic at application launch:

  1. Load the previously saved user token. To do this, call the AuthViaSavedToken SDK method. The method returns true if the stored token authentication was successful.
  2. Open the application page:
    • If the AuthViaSavedToken method returned true, refresh the user’s token by calling the SDK’s RefreshToken method and open the main page of the application.
    • If the AuthViaSavedToken method returned false, open the sign-up/login page.
If you use the SDK, add the Xsolla Privacy Policy Agreement link to your application. You can see the example of this link in the demo project on the sign up page.
Note
Note that the Xsolla Privacy Policy Agreement doesn’t mean user data will be used. If you plan to collect and process this kind of data, make sure that your actions comply with the law. You should ask users for their permission to collect and process their data or inform them about the Privacy Policy Agreement.
Was this article helpful?
Thank you!
Is there anything we can improve? Message
We’re sorry to hear that
Please explain why this article wasn’t helpful to you. Message
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.

Continue reading

Last updated: December 20, 2024

Found a typo or other text error? Select the text and press Ctrl+Enter.

Report a problem
We always review our content. Your feedback helps us improve it.
Provide an email so we can follow up
Thank you for your feedback!