From 4c4f5918810fe49b537f195b9d65730853ce73ac Mon Sep 17 00:00:00 2001 From: Will Vedder Date: Tue, 21 Nov 2023 15:01:04 -0500 Subject: [PATCH] Fixing error check --- internal/config/tenant.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/tenant.go b/internal/config/tenant.go index 1e30fe4c1..fa00cf49c 100644 --- a/internal/config/tenant.go +++ b/internal/config/tenant.go @@ -151,7 +151,7 @@ func (t *Tenant) RegenerateAccessToken(ctx context.Context) error { t.ExpiresAt = time.Now().Add(time.Duration(tokenResponse.ExpiresIn) * time.Second) } - if err := keyring.StoreAccessToken(t.Domain, t.AccessToken); err != nil { + if err := keyring.StoreAccessToken(t.Domain, t.AccessToken); err == nil { t.AccessToken = "" }