Add notification on failed refresh
This commit is contained in:
parent
5c7de72da7
commit
1d2c2f4f7b
|
@ -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{
|
||||||
|
|
Loading…
Reference in New Issue