catalyst-relay 0.6.5 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4316,9 +4316,12 @@ async function executeRequest(deps, options, selfRequest) {
|
|
|
4316
4316
|
}
|
|
4317
4317
|
if (response.status === 500) {
|
|
4318
4318
|
const text = await response.text();
|
|
4319
|
-
const
|
|
4320
|
-
if (
|
|
4321
|
-
|
|
4319
|
+
const isSessionError = /session/i.test(text) && /(timed out|expired|no longer exists|not found)/i.test(text);
|
|
4320
|
+
if (isSessionError && config.auth.type !== "saml") {
|
|
4321
|
+
const [, resetErr] = await sessionReset(state, selfRequest);
|
|
4322
|
+
if (resetErr) {
|
|
4323
|
+
debugError(`Session reset after 500 failed: ${resetErr.message}`);
|
|
4324
|
+
}
|
|
4322
4325
|
}
|
|
4323
4326
|
return ok(new Response(text, {
|
|
4324
4327
|
status: response.status,
|