diff options
| author | YurenHao0426 <blackhao0426@gmail.com> | 2026-02-13 19:01:53 +0000 |
|---|---|---|
| committer | YurenHao0426 <blackhao0426@gmail.com> | 2026-02-13 19:01:53 +0000 |
| commit | 6cfdb2b1c0af822376d57cc49b525d5641dfdbac (patch) | |
| tree | a65e40ba3626f387ad68bca3b9d3125b403d1dbc /backend/app/services/llm.py | |
| parent | fb72ce4fa11ca1f3252bdf24c489de2d16097752 (diff) | |
Add username fallback for API key resolution when JWT token expires
When the JWT token is expired or missing, endpoints could not resolve
user API keys and fell back to environment variables (which are unset).
Added resolve_user() helper that falls back to DB lookup by username
query param, and added ?user= to all frontend API calls as a belt-and-
suspenders approach alongside auth tokens.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'backend/app/services/llm.py')
0 files changed, 0 insertions, 0 deletions
