From a1bed22591c13403c81043b91caf4ca165dfb381 Mon Sep 17 00:00:00 2001 From: RXWatcher <14085001+RXWatcher@users.noreply.github.com> Date: Tue, 26 May 2026 07:00:50 +0200 Subject: [PATCH] chore(audiobooks): reuse existing now var in login envelope Replaces second time.Now() call with now.UnixMilli() using the now var already created higher up in completeLogin for token TTL math. Co-Authored-By: Claude Opus 4.7 (1M context) --- internal/audiobooks/abs/login.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/audiobooks/abs/login.go b/internal/audiobooks/abs/login.go index cf14446f..10b92450 100644 --- a/internal/audiobooks/abs/login.go +++ b/internal/audiobooks/abs/login.go @@ -197,7 +197,7 @@ func (h *Handler) completeLogin(w http.ResponseWriter, r *http.Request, userID, libraryMaps = append(libraryMaps, audiobookLibraryMap(lib)) } - nowMs := time.Now().UnixMilli() + nowMs := now.UnixMilli() // Real ABS clients pattern-match on a richer login envelope than the // minimum we previously sent. The added fields (itemTagsAccessible,