# Is this a side effect of the PWA functionality?

**URL:** <https://discourse.nodered.org/t/is-this-a-side-effect-of-the-pwa-functionality/87544>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [27 April 2024 10:37 UTC](https://discourse.nodered.org/t/is-this-a-side-effect-of-the-pwa-functionality/87544 "2024-04-27T10:37:01Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [29 April 2024 15:27 UTC](https://discourse.nodered.org/t/is-this-a-side-effect-of-the-pwa-functionality/87544/21 "2024-04-29T15:27:29Z")

</div>

> [@TotallyInformation](#):
>
> I don't see that it matters that much to be honest.

In fact I am having a problem, apparently due to the fact that I use Cloudflare ZeroTrust (inspired by your posts here 🙂 ) with Google Oauth. When the authentication expires I get a blank screen and have been unable to work out how to get it to reload in order to get redirected to the login page. See [Add PWA Functionality by cgjgh · Pull Request #708 · FlowFuse/node-red-dashboard · GitHub](https://github.com/FlowFuse/node-red-dashboard/pull/708#issuecomment-2082915609)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [29 April 2024 15:40 UTC](https://discourse.nodered.org/t/is-this-a-side-effect-of-the-pwa-functionality/87544/22 "2024-04-29T15:40:34Z")

</div>

Ah, interesting! An unexpected interaction.

I wonder if there is anything generic (e.g. not limited to Google but common to OAuth) that the browser receives? If there is, then there could be an auto-redirect built into D2 where you could configure your redirect to login endpoint.

I've added this comment to your PR comment:

> It sounds like the client code needs to have something that picks up a 401 response code from a client request and triggers a standard redirect to an endpoint defined in the D2 config.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [29 April 2024 20:27 UTC](https://discourse.nodered.org/t/is-this-a-side-effect-of-the-pwa-functionality/87544/23 "2024-04-29T20:27:00Z")

</div>

I have added [Issue #817](https://github.com/FlowFuse/node-red-dashboard/issues/817) to track this problem.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [29 May 2024 20:27 UTC](https://discourse.nodered.org/t/is-this-a-side-effect-of-the-pwa-functionality/87544/24 "2024-05-29T20:27:56Z")

</div>

Closed on 29 May 2024 20:27 UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/is-this-a-side-effect-of-the-pwa-functionality/87544.md?page=1)
