fix(auth): reject load() when persist read fails
This commit is contained in:
parent
a24091484c
commit
512f45d357
1 changed files with 91 additions and 10 deletions
|
|
@ -2191,7 +2191,15 @@ function App() {
|
|||
}
|
||||
|
||||
void (async () => {
|
||||
await webOAuthStorage.load();
|
||||
try {
|
||||
await webOAuthStorage.load();
|
||||
} catch (err) {
|
||||
connectStartRef.current = undefined;
|
||||
queueMicrotask(() => {
|
||||
showReAuthBanner(server.id, err instanceof Error ? err : String(err));
|
||||
});
|
||||
return;
|
||||
}
|
||||
const client = setupClientForServer(server, sessionId);
|
||||
setActiveServerId(server.id);
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue