Fix is401Error
This commit is contained in:
parent
04898cb5ce
commit
f7bf100a65
1 changed files with 0 additions and 5 deletions
|
|
@ -356,11 +356,6 @@ export function useConnection({
|
|||
}
|
||||
};
|
||||
|
||||
const is401Error = (error: unknown): boolean => {
|
||||
return (
|
||||
(error instanceof SseError && error.code === 401) ||
|
||||
(error instanceof StreamableHTTPError && error.code === 401) ||
|
||||
(error instanceof Error && error.message.includes("401")) ||
|
||||
const is401Error = (error: unknown): boolean => {
|
||||
return (
|
||||
(error instanceof SseError && error.code === 401) ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue