From 8c6665f2cf0573b02541ed18393febedcff6636e Mon Sep 17 00:00:00 2001 From: Kevin Kipp Date: Fri, 20 Sep 2024 15:31:23 -0500 Subject: [PATCH] Use manual redirect mode to catch access session expiration --- app/utils/rxjs/RxjsPeer.client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/rxjs/RxjsPeer.client.ts b/app/utils/rxjs/RxjsPeer.client.ts index 98e0d176..a80a4898 100644 --- a/app/utils/rxjs/RxjsPeer.client.ts +++ b/app/utils/rxjs/RxjsPeer.client.ts @@ -207,7 +207,7 @@ export class RxjsPeer { ? JSON.parse(requestInit.body) : undefined, }) - const response = await fetch(path, requestInit) + const response = await fetch(path, { ...requestInit, redirect: 'manual' }) // handle Access redirect if (response.status === 0) { alert('Access session is expired, reloading page.')