@sylphx/sdk 0.11.0 → 0.11.2

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.
@@ -5,6 +5,7 @@ import { NextResponse } from "next/server";
5
5
  var ENV_URL = "SYLPHX_URL";
6
6
  var ENV_PUBLIC_URL = "NEXT_PUBLIC_SYLPHX_URL";
7
7
  var ENV_SECRET_URL = "SYLPHX_SECRET_URL";
8
+ var SDK_API_PATH = `/v1`;
8
9
  var DEFAULT_SDK_API_HOST = "api.sylphx.com";
9
10
  var SDK_PLATFORM = typeof window !== "undefined" ? "browser" : typeof process !== "undefined" && process.versions?.node ? "node" : "unknown";
10
11
  var TOKEN_EXPIRY_BUFFER_MS = 3e4;
@@ -2701,6 +2702,8 @@ function decodeUserId(prefixedId) {
2701
2702
  }
2702
2703
 
2703
2704
  // src/server/index.ts
2705
+ var PLATFORM_CONSOLE_SLUG = "keen-wave-x3m9p2";
2706
+ var PLATFORM_TENANT_BAAS_URL = `https://${PLATFORM_CONSOLE_SLUG}.${DEFAULT_SDK_API_HOST}${SDK_API_PATH}`;
2704
2707
  function isJwksResponse(data) {
2705
2708
  return typeof data === "object" && data !== null && "keys" in data && Array.isArray(data.keys);
2706
2709
  }