reset cache direktly (#2411)

Co-authored-by: xantalor <giullian.franke@ic-consult.de>
This commit is contained in:
Xantalor 2022-01-27 08:47:10 +01:00 • committed by GitHub
parent b3e84625a8
commit f4515ef5dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)