diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-19 14:48:31 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-19 14:48:31 +0300 |
| commit | 0d737e7585a7b6876679b266e677675f7787ff24 (patch) | |
| tree | 0d1c1210d1072afb7b691bf68df54f8d90a7b889 /docs | |
| parent | 622827ccb4c23915aeccaa39d3e8152dd2955afb (diff) | |
Return error from tokenManager.Generate instead of panicking
A crypto/rand.Read failure is a process-level emergency, but the previous
implementation aborted the entire server. Propagate the error through
the TokenManager interface so callers (CreateAPIToken) can surface it
via the normal HTTP 500 path instead of crashing.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
