Use this call:
scope=offline
is passed in the registration or authentication call.Usage of this call depends on the value of the grant_type
parameter.
grant_type required | string The type of getting the JWT. Can be:
|
client_id required | string Your application ID. The value for this parameter depends on the value of the
Note that values for |
refresh_token | string Value of this parameter received in the response to the last request of this call with |
client_secret | string Your secret key. The value for this parameter depends on the value of the
Note that values for |
redirect_uri | string Value of |
code | string Authentication code that is exchanged to a JWT. Required if |
OK
Bad Request
Not Found
I’m a teapot
Unprocessable Entity
Too Many Requests
curl -i -X POST \ https://login.xsolla.com/api/oauth2/token \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d refresh_token=string \ -d grant_type=string \ -d client_secret=string \ -d client_id=string \ -d redirect_uri=string \ -d code=string
{- "access_token": "2YotnFZFEjr1zCsicMWpAA",
- "expires_in": 3600,
- "refresh_token": "tGzv3JOkF0XG5Qx2TlKWIA",
- "token_type": "bearer"
}