Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
hacker1024 opened this issue Jan 13, 2021 · 3 comments
Closed

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

hacker1024 opened this issue Jan 13, 2021 · 3 comments

Comments

@hacker1024
Copy link
Contributor

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 protected]",
  "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
Copy link
Contributor Author

Closing as this is no longer relevant (#45)

@GodStar88
Copy link

Untitled

{
"existingAuthToken": null,
"keepLoggedIn": true,
"password": "dfssdf345",
"username": "[email protected]"
}

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

how can i get existing auth token?

@hacker1024
Copy link
Contributor Author

The only way now is through the JSON API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants