Limit re-auth to refreshing jwt token
This commit is contained in:
parent
c270db1baa
commit
80c851e423
1 changed files with 5 additions and 0 deletions
|
|
@ -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 == "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue