fix: improve logging when session refresh token is missing (#3327)

* Improve logging for session refresh token status

Signed-off-by: Yosri Barhoumi <med.yosri.brh@gmail.com>

* doc: add changelog entry for #3327

Signed-off-by: Jan Larwig <jan@larwig.com>

* test: fix existing test cases for new behaviour

Signed-off-by: Jan Larwig <jan@larwig.com>

---------

Signed-off-by: Yosri Barhoumi <med.yosri.brh@gmail.com>
Signed-off-by: Jan Larwig <jan@larwig.com>
Co-authored-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
Yosri Barhoumi
2026-03-23 10:54:32 +01:00
committed by GitHub
co-authored by Jan Larwig
parent 5ca3012652
commit e2682f7595
4 changed files with 38 additions and 5 deletions
+1
View File
@@ -222,6 +222,7 @@ func (s *storedSessionLoader) refreshSession(rw http.ResponseWriter, req *http.R
// Session not refreshed, nothing to persist.
if !refreshed {
logger.Printf("Session not refreshed - User: %s; no refresh token available or provider returned false", session.User)
return nil
}