Xsolla-logo

Refresh social tokens in JWT

post/social/{provider_name}/refresh_token

Refreshes social acces token by social refresh token from JWT.

SecurityBearer
Request
path Parameters
provider_name
required
string

Name of the social network connected to Login in Publisher Account. Can be: amazon, apple, baidu, battlenet, discord, facebook, github, google, kakao, linkedin, mailru, microsoft, msn, naver, ok, paypal, psn, qq, reddit, steam, twitch, twitter, vimeo, vk, wechat, weibo, yahoo, yandex, youtube, xbox.

If you store user data in PlayFab, only twitch is available.

query Parameters
projectId
required
string <uuid>

Login project ID from Publisher Account.

Responses
200

OK

400

Bad Request

401

Bad Request

404

Not Found

422

Unprocessable Entity

Request samples
curl -i -X POST \
  'https://login.xsolla.com/api/social/{provider_name}/refresh_token?projectId=497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  -H 'Authorization: YOUR_API_KEY_HERE'
Response samples
application/json
{
  • "token": "some jwt"
}