Fix error state being briefly shown before OAuth
This commit is contained in:
@@ -184,6 +184,7 @@ export function useConnection({
|
|||||||
sessionStorage.setItem(SESSION_KEYS.SERVER_URL, sseUrl);
|
sessionStorage.setItem(SESSION_KEYS.SERVER_URL, sseUrl);
|
||||||
const redirectUrl = await startOAuthFlow(sseUrl);
|
const redirectUrl = await startOAuthFlow(sseUrl);
|
||||||
window.location.href = redirectUrl;
|
window.location.href = redirectUrl;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw error;
|
throw error;
|
||||||
|
|||||||
Reference in New Issue
Block a user