From ea6078f7d0da1dc3ec9e442ee845ef5b51116e13 Mon Sep 17 00:00:00 2001 From: Kevin Kipp Date: Wed, 18 Sep 2024 14:37:43 -0500 Subject: [PATCH] Handle access redirects --- app/utils/rxjs/RxjsPeer.client.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/utils/rxjs/RxjsPeer.client.ts b/app/utils/rxjs/RxjsPeer.client.ts index 6f173d69..98e0d176 100644 --- a/app/utils/rxjs/RxjsPeer.client.ts +++ b/app/utils/rxjs/RxjsPeer.client.ts @@ -208,6 +208,11 @@ export class RxjsPeer { : undefined, }) const response = await fetch(path, requestInit) + // handle Access redirect + if (response.status === 0) { + alert('Access session is expired, reloading page.') + location.reload() + } const responseBody = await response.clone().json() this.history.log({ endpoint: path,