[GH-ISSUE #216] an alternative login flow if you are experiencing BadAuthentication errors. #187

Open
opened 2026-02-25 20:34:51 +03:00 by kerem · 1 comment
Owner

Originally created by @jddcef on GitHub (May 27, 2024).
Original GitHub issue: https://github.com/B16f00t/whapa/issues/216

Hi, I see this on the gpsoauth readme https://github.com/simon-weber/gpsoauth/blob/master/README.md

Alternative flow

There is an alternative login flow if you are experiencing BadAuthentication errors.

  1. Go to https://accounts.google.com/EmbeddedSetup
  2. Log into your Google Account
  3. Click on "I agree" when prompted
  4. Obtain the value of the oauth_token cookie. For more details see the gpsoauth-java readme.

Then, perform the token exchange:

import gpsoauth

email = 'example@gmail.com'
android_id = '0123456789abcdef'
token = '...' # insert the oauth_token here

master_response = gpsoauth.exchange_token(email, token, android_id)
master_token = master_response['Token']  # if there's no token check the response for more details

auth_response = gpsoauth.perform_oauth(
    email, master_token, android_id,
    service='sj', app='com.google.android.music',
    client_sig='...')
token = auth_response['Auth']

Could this not be implemented in whatpa? @B16f00t

Originally created by @jddcef on GitHub (May 27, 2024). Original GitHub issue: https://github.com/B16f00t/whapa/issues/216 Hi, I see this on the gpsoauth readme https://github.com/simon-weber/gpsoauth/blob/master/README.md > > ## Alternative flow > > There is an alternative login flow if you are experiencing `BadAuthentication` errors. > > 1. Go to https://accounts.google.com/EmbeddedSetup > 2. Log into your Google Account > 3. Click on "I agree" when prompted > 4. Obtain the value of the `oauth_token` cookie. For more details see [the gpsoauth-java readme](https://github.com/rukins/gpsoauth-java/blob/b74ebca999d0f5bd38a2eafe3c0d50be552f6385/README.md#receiving-an-authentication-token). > > Then, perform the token exchange: > > ```python > import gpsoauth > > email = 'example@gmail.com' > android_id = '0123456789abcdef' > token = '...' # insert the oauth_token here > > master_response = gpsoauth.exchange_token(email, token, android_id) > master_token = master_response['Token'] # if there's no token check the response for more details > > auth_response = gpsoauth.perform_oauth( > email, master_token, android_id, > service='sj', app='com.google.android.music', > client_sig='...') > token = auth_response['Auth'] > ``` Could this not be implemented in whatpa? @B16f00t
Author
Owner

@davispuh commented on GitHub (Dec 11, 2025):

It's now implemented with #247

<!-- gh-comment-id:3639520421 --> @davispuh commented on GitHub (Dec 11, 2025): It's now implemented with #247
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whapa#187
No description provided.