Companion
Functions
Authenticates the user via a particular device ID.
Checks user’s age for a particular region. The age requirements depend on the region. Service determines the user’s location by the IP address.
Completes authentication after the user enters a one-time code or follows a link received in an email.
Completes authentication after the user enters a one-time code or follows a link received by SMS.
Creates the code for linking the platform account to the existing main account when the user logs in to the game via a gaming console.
Deletes the user’s avatar. Changes are made on the user data storage side (server side).
Deletes the user’s phone number that is used for two-factor authentication. Changes are made on the user data storage side (server side).
Finishes authentication via xsolla widget
Finishes authentication via a social network
Finishes linking the social network to current user account.
Returns user details.
Returns the email of the authenticated user.
Returns user friends data.
Returns user phone number that is used for two-factor authentication.
Returns the list of linked social networks.
Returns list of links for social authentication enabled in Publisher Account. The links are valid for 10 minutes. You can get the link by this method and add it to your button for authentication via the social network.
Waits until the user follows the link provided via email/SMS and returns the code.
Returns user friends data from a social provider.
Returns specified user public profile information.
Returns a list of particular user’s attributes with their values and descriptions. Returns only user-editable attributes.
Returns a list of devices linked to the current user account.
Initialize SDK
Links the specified device to the current user account.
Adds a username, email address, and password, that can be used for authentication, to the current account.
Logs the user out and deletes the user session according to the value of the sessions parameter.
Refreshes OAuth 2.0 access token
Creates a new user account in the application and sends a sign-up confirmation email to the specified email address. To complete registration, the user must follow the link from the email.
Resends an account confirmation email to a user. To complete account confirmation, the user should follow the link in the email.
Resets the user’s current password and sends an email to change the password to the email address specified during sign-up.
Searches users by nickname and gets a list of them. Search is performed by substring if it is in the beginning of the string. The current user can call this method only one time per second.
set authentication data
Starts user authentication and sends an email with a one-time code and a link to the specified email address (if login via magic link is configured for the Login project).
Starts user authentication and sends an SMS with a one-time code and a link to the specified phone number (if login via magic link is configured for the Login project).
Starts authentication via xsolla widget
Starts authentication via a social network
Links a social network that can be used for authentication to the current account.
Unlinks the specified device from the current user account.
Unlinks social network from current user account.
Updates the specified user’s information. Changes are made on the user data storage side.
Modifies relationships with the specified user.
Changes the user’s phone number that is used for two-factor authentication. Changes are made on the user data storage side (server-side).
Begins processing to update a list of user’s friends from a social provider. Please note that there may be a delay in data processing because of the Xsolla Login server or provider server high loads.
Updates the values of user attributes with the specified IDs. The method can be used to create and remove attributes. Changes are made on the user data storage side (server side).
Changes the user’s avatar. Changes are made on the user data storage side (server side).