@absolutejs/absolute 0.20.0-beta.25 → 0.20.0-beta.26

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.
package/dist/cli/index.js CHANGED
@@ -7093,8 +7093,8 @@ var isElysiaApp = (value) => typeof value === "object" && value !== null && type
7093
7093
  const usesPush = deviceCapabilities.capabilities.includes("pushNotifications");
7094
7094
  if (usesPush && !auth)
7095
7095
  throw new TypeError("Portable push notifications require @absolutejs/auth so provider tokens can be registered without exposing identity controls to page code.");
7096
- if (usesPush && !loaded.app.routes.some((route) => route.path === "/auth/mobile/push"))
7097
- throw new TypeError("@absolutejs/devices pushNotifications is used, but Auth nativePush is not configured. Pass a server-side registrar to auth({ nativePush: ... }).");
7096
+ if (usesPush && !loaded.app.routes.some((route) => route.path === "/auth/push" || route.path === "/auth/mobile/push"))
7097
+ throw new TypeError("@absolutejs/devices pushNotifications is used, but Auth push is not configured. Pass a trusted server-side registrar to auth({ push: ... }).");
7098
7098
  assertAbsoluteDeviceCapabilityPackages(options.projectRoot, deviceCapabilities);
7099
7099
  if (auth && !loaded.app.routes.some((route) => route.path === "/.well-known/openid-configuration")) {
7100
7100
  throw new TypeError("@absolutejs/auth is installed, but its OIDC provider is not mounted. Native authentication requires the auth oidc configuration so AbsoluteJS can provision a public PKCE client.");