Skip to content

Instantly share code, notes, and snippets.

@i-am-called-glitchy
i-am-called-glitchy / getRefreshTokens.py
Created February 6, 2025 15:39
How to use a refresh token in Kirka.io (and other xsolla applications but this is for kirka specifically).
import aiohttp
import asyncio
async def async_exchange_refresh_token(refresh_token):
url = "https://login.xsolla.com/api/oauth2/token"
headers = {
"Accept": "application/json",
"Content-Type": "application/x-www-form-urlencoded",
"Origin": "https://kirka.io",
"Referer": "https://kirka.io/"