techchrism/valorant-api-docs

help https://auth.riotgames.com/userinfo api not work :\

Closed this issue · 0 comments

code

    async with aiohttp.ClientSession() as s:
        headers = {"Authorization": "Bearer " + riotgamesauth["auth"]['access_token'],
                   "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36",
                   "Content-Type": "application/json",
                   }
        async with s.get("https://auth.riotgames.com/userinfo") as r:
            print(r.status)
            print(await r.text())

output
image

if base64 encode tọken
image
out
image