summaryrefslogtreecommitdiff
path: root/player-server/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-19 15:14:09 +0300
committerPaul Buetow <paul@buetow.org>2026-05-19 15:14:09 +0300
commit92edb836d45ccb9e096a4c9a8c2cabcebf133d19 (patch)
tree8b5620f3f9d895984e52b872c0813ef0dccf90bb /player-server/cmd
parent2967a0d2c860d3af16164e106b547256b7ebf7c7 (diff)
Require explicit TokenManager in auth service (DIP)
Remove the silent nil-fallback in NewAuthService that fabricated a default auth.TokenManager when callers passed nil. The service now panics on nil, forcing callers to inject their own TokenManager and keeping construction at the composition root. Production wiring (cmd/player/main.go) already constructs the TokenManager explicitly via auth.NewTokenManager(); test call sites in internal/api/handlers_test.go and handlers_podcast_test.go that used to pass nil now pass auth.NewTokenManager() to honour the new contract. Mirrors the pattern set in commit 622827c (http.Client in podcast service). Refs task 7a. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Diffstat (limited to 'player-server/cmd')
0 files changed, 0 insertions, 0 deletions