Поправили заполлнение БД + поправили гонку сообщений при отправке в Битрикс

This commit is contained in:
mi
2026-07-17 11:46:12 +03:00
parent 7457bc5c0b
commit d1a0f3791d
13 changed files with 562 additions and 84 deletions
@@ -43,9 +43,9 @@ export function AppProvider({ children }: { children: React.ReactNode }) {
if (minutes > 0) setIdleTimeoutMs(minutes * 60_000);
}).catch(() => undefined);
void refreshTokens()
.then(() => {
.then(async () => {
await authApi.startSession("cold_start");
setAuthStatus("authenticated");
void authApi.startSession("cold_start").catch(() => undefined);
})
.catch(() => setAuthStatus("guest"));
}, [toGuest]);