mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
ui clear token when user logging in
This commit is contained in:
parent
e7f8ee2aba
commit
ea55c5c857
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
Add a link
Reference in a new issue