Porsche: keep cookies alive

This commit is contained in:
andig 2023-06-27 21:51:04 +02:00
parent dcca3638ba
commit 4d516d5844

View file

@ -76,7 +76,8 @@ func (v *Identity) Login(oc *oauth2.Config, user, password string) error {
v.Client.Jar, _ = cookiejar.New(nil)
v.Client.CheckRedirect = request.DontFollow
defer func() {
v.Client.Jar = nil
// keep cookies around
// v.Client.Jar = nil
v.Client.CheckRedirect = nil
}()