Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

context

Manav Rathiad53ba82c478
diff --git a/web/apps/cast/src/services/render.ts b/web/apps/cast/src/services/render.ts
index ef181b19f8..14d085e504 100644
--- a/web/apps/cast/src/services/render.ts
+++ b/web/apps/cast/src/services/render.ts
@@ -97,8 +97,12 @@ export const renderableImageURLs = async function* (castData: CastData) {
haveEligibleFiles = true;
} catch (e) {
if (e instanceof ApiError && e.httpStatusCode == 401) {
- // The token has expired. Rethrow the error, which will
- // bring us back to the pairing page.
+ // The token has expired. This can happen, e.g., if the user
+ // opens the dialog to cast again, causing the client to
+ // invalidate existing tokens.
+ //
+ // Rethrow the error, which will bring us back to the
+ // pairing page.
throw e;
}