Skip to content

Commit

Permalink
Add notification on failed refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
quexten committed Dec 28, 2023
1 parent 5c7de72 commit 1d2c2f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agent/bitwarden/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ func RefreshToken(ctx context.Context, cfg *config.Config) bool {
"client_id", "connector",
))
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
}
cfg.SetToken(config.LoginToken{
Expand Down

0 comments on commit 1d2c2f4

Please sign in to comment.