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.mjs
CHANGED
|
@@ -4280,9 +4280,12 @@ async function executeRequest(deps, options, selfRequest) {
|
|
|
4280
4280
|
}
|
|
4281
4281
|
if (response.status === 500) {
|
|
4282
4282
|
const text = await response.text();
|
|
4283
|
-
const
|
|
4284
|
-
if (
|
|
4285
|
-
|
|
4283
|
+
const isSessionError = /session/i.test(text) && /(timed out|expired|no longer exists|not found)/i.test(text);
|
|
4284
|
+
if (isSessionError && config.auth.type !== "saml") {
|
|
4285
|
+
const [, resetErr] = await sessionReset(state, selfRequest);
|
|
4286
|
+
if (resetErr) {
|
|
4287
|
+
debugError(`Session reset after 500 failed: ${resetErr.message}`);
|
|
4288
|
+
}
|
|
4286
4289
|
}
|
|
4287
4290
|
return ok(new Response(text, {
|
|
4288
4291
|
status: response.status,
|