How to enable seamless authorization
How it works
When a user is logged in to a website that distributes a launcher, the launcher account is automatically logged in.
Who can use it
Partners who have already integrated Launcher and Login and connected OAuth 2.0 authentication.
How to get it
To enable seamless authorization, implement the following:
Retrieval of a one-time password
To implement obtaining a one-time password, make a POST request to the URL addresshttps://launcher.xsolla.com/otp
. In the request body, pass a JSON with the following parameters:refresh_token
- user refresh token. Required.access_token
- user access token. Required.
Note
refresh_token
and access_token
parameters’ values cannot be empty.Copy
curl -X POST "https://launcher.xsolla.com/otp" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"access_token\": \"string\", \"refresh_token\": \"string\"}"
Adding the one-time password to the installer’s name
The received one-time password is a 36-character string in UUID format. Implement adding the one-time password to the installation file name when downloading in the following format:LauncherName_<OTP>.exe
, where <OTP>
is the one-time password.Was this article helpful?
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.Found a typo or other text error? Select the text and press Ctrl+Enter.