From ee9720c9b07bf3201dec4cdc37f9d5dbd8ce82be Mon Sep 17 00:00:00 2001 From: Thomas Becker Date: Fri, 14 Mar 2025 11:32:25 +0100 Subject: [PATCH] chore: minor (#19767) --- vehicle/toyota/identity.go | 3 --- 1 file changed, 3 deletions(-) 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{})