Limit re-auth to refreshing jwt token

This commit is contained in:
andig 2020-07-13 19:36:35 +02:00
parent c270db1baa
commit 80c851e423

View file

@ -149,6 +149,11 @@ func (v *Renault) authFlow() error {
v.gigyaJwtToken, err = v.jwtToken(sessionCookie)
if err == nil {
if v.accountID != "" {
// personID, accountID and VIN have already been read, skip remainder of flow
return nil
}
var personID string
personID, err = v.personID(sessionCookie)
if personID == "" {