From f4515ef5ddcc7be3e5a68d8ba77d8dd7fc90dd9a Mon Sep 17 00:00:00 2001 From: Xantalor <3896915+xantalor@users.noreply.github.com> Date: Thu, 27 Jan 2022 08:47:10 +0100 Subject: [PATCH] reset cache direktly (#2411) Co-authored-by: xantalor --- vehicle/mercedes/identity.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vehicle/mercedes/identity.go b/vehicle/mercedes/identity.go index b68c045f8..916dfb203 100644 --- a/vehicle/mercedes/identity.go +++ b/vehicle/mercedes/identity.go @@ -11,6 +11,7 @@ import ( "github.com/coreos/go-oidc" "github.com/evcc-io/evcc/api" + "github.com/evcc-io/evcc/provider" "github.com/evcc-io/evcc/util" "golang.org/x/oauth2" ) @@ -149,6 +150,8 @@ func (v *Identity) CallbackHandler(baseURI string) http.HandlerFunc { v.log.TRACE.Println("sending login update...") v.ReuseTokenSource.Apply(token) v.authC <- true + + provider.ResetCached() } http.Redirect(w, r, baseURI, http.StatusFound)