whapa icon indicating copy to clipboard operation
whapa copied to clipboard

an alternative login flow if you are experiencing `BadAuthentication` errors.

Open jddcef opened this issue 2 months ago • 0 comments

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 = '[email protected]'
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

jddcef avatar May 27 '24 22:05 jddcef