Skip to content

Commit

Permalink
Handle access redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
third774 committed Sep 18, 2024
1 parent 21604fc commit ea6078f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/utils/rxjs/RxjsPeer.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ea6078f

Please sign in to comment.