Add notification on failed refresh

This commit is contained in:
Bernd Schoolmann 2023-12-28 13:02:47 +01:00
parent 5c7de72da7
commit 1d2c2f4f7b
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -208,7 +208,8 @@ func RefreshToken(ctx context.Context, cfg *config.Config) bool {
"client_id", "connector", "client_id", "connector",
)) ))
if err != nil { if err != nil {
fmt.Println("Could not refresh token: ", err) authLog.Error("Could not refresh token: %s", err.Error())
notify.Notify("Goldwarden", fmt.Sprintf("Could not refresh token: %v", err), "", func() {})
return false return false
} }
cfg.SetToken(config.LoginToken{ cfg.SetToken(config.LoginToken{