@orangecheck/me-client 0.32.3 → 0.32.4

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/index.mjs CHANGED
@@ -1035,6 +1035,7 @@ async function defaultLive() {
1035
1035
  var federations = { list, live, get, defaultLive };
1036
1036
 
1037
1037
  // src/scope.ts
1038
+ var CONSENT_ORIGIN = "https://ochk.app";
1038
1039
  var VALID_SCOPES = [
1039
1040
  "bitcoin_address",
1040
1041
  "email",
@@ -1090,7 +1091,7 @@ function request(scopes2, options) {
1090
1091
  if (typeof window === "undefined") {
1091
1092
  throw new Error("oc.scope.request: must be called in a browser environment");
1092
1093
  }
1093
- const origin2 = options.origin ?? getOrigin();
1094
+ const origin2 = options.origin ?? CONSENT_ORIGIN;
1094
1095
  const url = new URL("/me/scope-grant", origin2);
1095
1096
  url.searchParams.set("project_key", options.project_key);
1096
1097
  url.searchParams.set("scopes", scopes2.join(","));