liamcottle / valorant.js

This is an unofficial NodeJS library for interacting with the VALORANT API used in game.
103 stars 19 forks source link

400 Bad Request: invalid_session_id #20

Closed Tiqan closed 2 years ago

Tiqan commented 2 years ago

If i try to authorize i get a 400 response with

{
   "type":"error",
   "error":"invalid_session_id",
   "country":"deu"
}

Request URL: https://auth.riotgames.com/api/v1/authorization Request Method: PUT Status Code: 400 Request Payload:

{type: "auth", username: "XXXXXXXXXXXXXXX", password: "XXXXXXXXXX"}

Do you know why?

texasrodeo commented 2 years ago

Hi, did you manage to resolve this issue?

Tiqan commented 2 years ago

No sorry... But I figured out that I had this error because my electron-react-app wasnt saving the cookies right... The tough-cookie package seems like not working with my electron-react-app