Save new access token after relogining

This commit is contained in:
Tulir Asokan
2023-01-16 17:31:09 +02:00
parent d0fb075874
commit 315e7921e6

View File

@@ -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.log.Infofln("Successfully relogined after '%v' while %s", cause, action)
puppet.AccessToken = accessToken puppet.AccessToken = accessToken
puppet.Update()
return true return true
} }