Skip to content

GoogleAutoCredentialProvider with secured accounts #318

@drallieiv

Description

@drallieiv

Description:
when using google login/pass connection, if he account has 2 factor auth (OTP bt SMS), we get a LoginFailedException

Steps to reproduce:

  1. Use an account with security active
  2. Try to connect

Expected behavior:
Login and continue

Actual behavior:
Login Failed

Stacktrace (If it's a crash):
Exception in thread "main" com.pokegoapi.exceptions.LoginFailedException: svarzee.gps.gpsoauth.Gpsoauth$TokenRequestFailed
at com.pokegoapi.auth.GoogleAutoCredentialProvider.login(GoogleAutoCredentialProvider.java:74)
at com.pokegoapi.auth.GoogleAutoCredentialProvider.(GoogleAutoCredentialProvider.java:60)
at com.herazade.pogo.ListingTest.main(ListingTest.java:47)
Caused by: svarzee.gps.gpsoauth.Gpsoauth$TokenRequestFailed
at svarzee.gps.gpsoauth.Gpsoauth.performMasterLoginForToken(Gpsoauth.java:105)
at svarzee.gps.gpsoauth.Gpsoauth.performMasterLoginForToken(Gpsoauth.java:88)
at com.pokegoapi.auth.GoogleAutoCredentialProvider.login(GoogleAutoCredentialProvider.java:67)
... 2 more

Version:
[The version of the lib you used]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions