forked from phoenix/litellm-mirror
(fixs) working dashboard with oath
This commit is contained in:
parent
8695564722
commit
636989ed96
1 changed files with 2 additions and 17 deletions
|
@ -38,7 +38,7 @@ const UserDashboard = () => {
|
||||||
if (proxyBaseUrl == null) {
|
if (proxyBaseUrl == null) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<EnterProxyUrl onUrlChange={handleProxyUrlChange} />
|
<EnterProxyUrl />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -47,22 +47,7 @@ const UserDashboard = () => {
|
||||||
sessionStorage.setItem('returnUrl', window.location.href);
|
sessionStorage.setItem('returnUrl', window.location.href);
|
||||||
|
|
||||||
|
|
||||||
// window.location.href = `${proxyBaseUrl}/google-login/key/generate`;
|
window.location.href = `${proxyBaseUrl}/google-login/key/generate`;
|
||||||
|
|
||||||
fetch(`${proxyBaseUrl}/google-login/key/generate`, { redirect: 'follow' })
|
|
||||||
.then(response => {
|
|
||||||
if (!response.ok) {
|
|
||||||
throw new Error(`HTTP error! Status: ${response.status}`);
|
|
||||||
}
|
|
||||||
return response.json();
|
|
||||||
})
|
|
||||||
.then(data => {
|
|
||||||
console.log('Response Data:', data);
|
|
||||||
})
|
|
||||||
.catch(error => {
|
|
||||||
console.error('Fetch Error:', error);
|
|
||||||
});
|
|
||||||
// after this check return value from this page
|
|
||||||
|
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue