@henosia/app-next 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,7 +59,8 @@ const henosiaAuthConfig = {
59
59
  * Gets whether the specified request is for a page (a top level page or iframe page)
60
60
  */
61
61
  function isPageRequest(request) {
62
- const dest = request.headers.get("Sec-Fetch-Dest");
62
+ const { headers } = request;
63
+ const dest = headers.get("X-Henosia-Fetch-Dest") ?? headers.get("Sec-Fetch-Dest");
63
64
  if (dest === "document" || dest === "iframe" || dest === "fencedframe") return true;
64
65
  const isRsc = request.headers.get("RSC") === "1";
65
66
  const isPrefetch = request.headers.get("Next-Router-Prefetch") === "1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henosia/app-next",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Henosia integration for Next.js apps: Provides Henosia Auth and Henosia Platform features like app switcher",
5
5
  "author": "Henosia",
6
6
  "license": "SEE LICENSE IN LICENSE",