mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
fix(ui): guard storeLoginToken against empty/whitespace-only tokens
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
06260df412
commit
35bd69e146
1 changed files with 1 additions and 0 deletions
|
|
@ -62,6 +62,7 @@ export function clearTokenCookies() {
|
|||
*/
|
||||
export function storeLoginToken(token: string) {
|
||||
if (typeof window === "undefined") return;
|
||||
if (!token || !token.trim()) return;
|
||||
try {
|
||||
sessionStorage.setItem("token", token);
|
||||
} catch {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue