mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
Merge pull request #4755 from BerriAI/ui_fix_login
ui-fix: clear token when user logging in
This commit is contained in:
commit
7211bbcfab
1 changed files with 5 additions and 0 deletions
|
|
@ -271,6 +271,11 @@ const UserDashboard: React.FC<UserDashboardProps> = ({
|
|||
const url = proxyBaseUrl
|
||||
? `${proxyBaseUrl}/sso/key/generate`
|
||||
: `/sso/key/generate`;
|
||||
|
||||
|
||||
// clear cookie called "token" since user will be logging in again
|
||||
document.cookie = "token=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
||||
|
||||
console.log("Full URL:", url);
|
||||
window.location.href = url;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue