yeriomin / play-store-api

Google Play Store protobuf API wrapper in java
GNU General Public License v3.0
322 stars 130 forks source link

Cannot use token + gsfId in the reauth flow #13

Closed ruimateus closed 6 years ago

ruimateus commented 6 years ago

When using:

PlayStoreApiBuilder builder = new PlayStoreApiBuilder()
.setHttpClient(new OkHttpClientAdapter())
.setDeviceInfoProvider(deviceInfoProvider)
.setToken(token)
.setGsfId(gsfid);
GooglePlayAPI api = builder.build();

It will throw

com.github.yeriomin.playstoreapi.ApiBuilderException: Either email-password pair or a token dispenser url is required

How can we use token and gsfId directly without needing a token dispenser?

yeriomin commented 6 years ago

Fixed in master, see tests.

If you want a workaround, GooglePlayAPI has setters for token and gsfId.