Skip to content

Commit

Permalink
Merge pull request #112 from cloudflare/handle-access-redirects-durin…
Browse files Browse the repository at this point in the history
…g-meeting

Handle access redirects
  • Loading branch information
third774 authored Sep 18, 2024
2 parents 21604fc + ea6078f commit f83cb24
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 f83cb24

Please sign in to comment.