From 315e7921e6c2f82e7c0fa12fea94edb245844e3a Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 16 Jan 2023 17:31:09 +0200 Subject: [PATCH] Save new access token after relogining --- custompuppet.go | 1 + 1 file changed, 1 insertion(+) diff --git a/custompuppet.go b/custompuppet.go index 5524167..43e216f 100644 --- a/custompuppet.go +++ b/custompuppet.go @@ -119,6 +119,7 @@ func (puppet *Puppet) tryRelogin(cause error, action string) bool { } puppet.log.Infofln("Successfully relogined after '%v' while %s", cause, action) puppet.AccessToken = accessToken + puppet.Update() return true }