mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
Merge pull request #5187 from BerriAI/litellm_handle_session_expired_ui
[Feat-UI] - Handle session expired on UI
This commit is contained in:
commit
4159897570
1 changed files with 1 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ const handleError = async (errorData: string) => {
|
|||
message.info("UI Session Expired. Logging out.");
|
||||
lastErrorTime = currentTime;
|
||||
await sleep(3000); // 5 second sleep
|
||||
document.cookie = "token=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
||||
window.location.href = baseUrl;
|
||||
} else {
|
||||
message.error(errorData);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue