diff --git a/internal/auth/auth.go b/internal/auth/auth.go index 9201315..5f88bbb 100644 --- a/internal/auth/auth.go +++ b/internal/auth/auth.go @@ -331,7 +331,7 @@ func (auth *Authentication) AuthApi( ipErr := securedCheck(user, r) if ipErr != nil { - log.Infof("auth api -> secured check failed: %s", err.Error()) + log.Infof("auth api -> secured check failed: %s", ipErr.Error()) onfailure(rw, r, ipErr) return }