@swell/apps-sdk 2.0.0-alpha.2 → 2.0.0-alpha.3
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 +1 -1
- package/dist/request-context.js +1 -1
- package/dist/version.d.cts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -187,7 +187,7 @@ Node compatibility should pass their bindings as `env`.
|
|
|
187
187
|
| Variable | Default | Purpose |
|
|
188
188
|
| --- | --- | --- |
|
|
189
189
|
| `SWELL_VERIFY_HEADERS` | enabled | Set exactly `"false"` to skip signature verification during local development. |
|
|
190
|
-
| `SWELL_HEADERS_JWKS_URL` | `https://swell.store
|
|
190
|
+
| `SWELL_HEADERS_JWKS_URL` | `https://keys.swell.store/jwks.json` | Override the verification-key endpoint. |
|
|
191
191
|
|
|
192
192
|
For local development against a local Swell instance, put `SWELL_VERIFY_HEADERS=false`
|
|
193
193
|
in `.dev.vars`. Remove it or set it to `"true"` to restore verification. Token structure
|
package/dist/request-context.js
CHANGED
|
@@ -21,7 +21,7 @@ export async function verifySwellContext(headers, options = {}) {
|
|
|
21
21
|
const runtime = globalThis;
|
|
22
22
|
const env = options.env ?? runtime.process?.env ?? {};
|
|
23
23
|
const verify = env.SWELL_VERIFY_HEADERS !== 'false';
|
|
24
|
-
const jwksUrl = validateUrl(env.SWELL_HEADERS_JWKS_URL ?? 'https://swell.store
|
|
24
|
+
const jwksUrl = validateUrl(env.SWELL_HEADERS_JWKS_URL ?? 'https://keys.swell.store/jwks.json', 'SWELL_HEADERS_JWKS_URL');
|
|
25
25
|
for (const field of ['appId', 'storeId']) {
|
|
26
26
|
if (options[field] !== undefined)
|
|
27
27
|
requireString(options[field], field);
|
package/dist/version.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const USER_AGENT = "swell-apps-sdk/2.0.0-alpha.
|
|
1
|
+
export declare const USER_AGENT = "swell-apps-sdk/2.0.0-alpha.3";
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const USER_AGENT = "swell-apps-sdk/2.0.0-alpha.
|
|
1
|
+
export declare const USER_AGENT = "swell-apps-sdk/2.0.0-alpha.3";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Replaced with the package version by the build.
|
|
2
|
-
export const USER_AGENT = 'swell-apps-sdk/2.0.0-alpha.
|
|
2
|
+
export const USER_AGENT = 'swell-apps-sdk/2.0.0-alpha.3';
|