@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/README.md +3 -3
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/integrator.js.map +1 -1
- package/dist/integrator.mjs.map +1 -1
- package/package.json +2 -2
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 ??
|
|
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(","));
|