summaryrefslogtreecommitdiff
path: root/frontend/src/store/authStore.ts
diff options
context:
space:
mode:
authorYurenHao0426 <blackhao0426@gmail.com>2026-02-13 19:01:53 +0000
committerYurenHao0426 <blackhao0426@gmail.com>2026-02-13 19:01:53 +0000
commit6cfdb2b1c0af822376d57cc49b525d5641dfdbac (patch)
treea65e40ba3626f387ad68bca3b9d3125b403d1dbc /frontend/src/store/authStore.ts
parentfb72ce4fa11ca1f3252bdf24c489de2d16097752 (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 'frontend/src/store/authStore.ts')
0 files changed, 0 insertions, 0 deletions