import { describe, expect, it } from "vitest"; import { type GatewayErrorInfo, isNonRecoverableAuthError } from "../../ui/src/ui/gateway.ts"; import { ConnectErrorDetailCodes } from "./protocol/connect-error-details.js";
it("allows reconnect for AUTH_TOKEN_MISMATCH (device-token fallback flow)", () => { // Browser client can queue a single trusted-device retry after shared token mismatch. // Blocking reconnect on mismatch here would skip that bounded recovery attempt.
expect(isNonRecoverableAuthError(makeError(ConnectErrorDetailCodes.AUTH_TOKEN_MISMATCH))).toBe( false,
);
});
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.