This method can be used in the following scripts:
- To exchange the user authentication code for a JWT.
- To refresh the JWT when it is expired if your application needs access to the Login API beyond the JWT expiration period. Works only if
scope=offlinein the registration or authentication method.
- To get the server JWT without user participation.
refresh_token value received in the response to the last call of this method. Required if
The type of getting the JWT. Can be:
authorization_codeto exchange the code received in the method to JWT. The value of the
codeparameter must be specified.
refresh_tokento get the refreshed JWT when the previous value is expired. The value of the
refresh_tokenparameter must be specified.
client_credentialsto get the server JWT without user participation, the values of the
client_secretparameters must be specified.
Your secret key hashed according to the bcrypt algorithm. You got it after sending the request to enable OAuth 2.0. To get your secret key again, please contact your Account Manager.
Your application ID from Publisher Account. You will get it after sending the request to enable the OAuth 2.0 protocol.
URL to redirect the user to after account confirmation, successful authentication, or password reset confirmation. To set up this parameter, please contact your Account Manager.
User authentication code that will be exchanged to a JWT. Required if
The Xsolla Login JWT.
JWT expiration period in seconds. Default value is 3600 seconds.
Refresh the JWT for updating the
JWT type. Has