PromyLOPh / pandora-apidoc

pandora.com API documentation
https://6xq.net/pandora-apidoc/
Do What The F*ck You Want To Public License
48 stars 19 forks source link

[REST] Logging in with an existing auth token #44

Closed hacker1024 closed 3 years ago

hacker1024 commented 3 years ago

When opening the Pandora Web client, after having signed in already, it seems to log In with a request like the following, with an empty password string and a populated existingAuthToken field:

POST https://www.pandora.com/api/v1/auth/login
{
  "existingAuthToken": "<token>",
  "username": "email@addre.ss",
  "password": "",
  "keepLoggedIn":true
}

The existing auth token is always the one that was received when logging in previously.

Upon replicating this request, however, I get the standard invalid credential error:

{
  "message": "Invalid username and/or password",
  "errorCode": 0,
  "errorString": "AUTH_INVALID_USERNAME_PASSWORD"
}

Does anyone know what's going on here?

hacker1024 commented 3 years ago

Closing as this is no longer relevant (#45)

GodStar88 commented 3 years ago

Untitled

{ "existingAuthToken": null, "keepLoggedIn": true, "password": "dfssdf345", "username": "go@gmail.com" }

{ "message": "The request could not be validated", "errorCode": 0, "errorString": "INVALID_REQUEST" }

how can i get existing auth token?

hacker1024 commented 3 years ago

The only way now is through the JSON API