reset cache direktly (#2411)
Co-authored-by: xantalor <giullian.franke@ic-consult.de>
This commit is contained in:
parent
b3e84625a8
commit
f4515ef5dd
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue