diff --git a/vehicle/toyota/identity.go b/vehicle/toyota/identity.go index 39f761348..1dc7302f7 100644 --- a/vehicle/toyota/identity.go +++ b/vehicle/toyota/identity.go @@ -5,7 +5,6 @@ import ( "net/http" "net/url" "strings" - "time" "github.com/evcc-io/evcc/util" "github.com/evcc-io/evcc/util/oauth" @@ -121,8 +120,6 @@ func (v *Identity) fetchTokenCredentials(code string) error { return fmt.Errorf("failed to fetch token credentials: %w", err) } - res.Expiry = time.Now().Add(time.Duration(res.ExpiresIn) * time.Second) - // Parse ID token without verification to extract UUID parser := jwt.NewParser(jwt.WithoutClaimsValidation()) token, _, err := parser.ParseUnverified(res.IDToken, jwt.MapClaims{})