@c1m-public/platform-auth 0.8.1 → 0.8.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.
- package/dist/next.js +2 -2
- package/package.json +1 -1
package/dist/next.js
CHANGED
|
@@ -83,7 +83,7 @@ function isTimeout(error) {
|
|
|
83
83
|
return error instanceof Error && (error.name === "TimeoutError" || error.name === "AbortError");
|
|
84
84
|
}
|
|
85
85
|
function createPlatformFetch(config) {
|
|
86
|
-
const doFetch = config.fetch ?? globalThis.fetch;
|
|
86
|
+
const doFetch = (input, init) => (config.fetch ?? globalThis.fetch)(input, init);
|
|
87
87
|
const forward = config.forwardHeaders ?? buildForwardedRequestHeaders;
|
|
88
88
|
async function fetchWithAccessToken(path, accessToken, init) {
|
|
89
89
|
try {
|
|
@@ -189,7 +189,7 @@ function createSessionStore(config) {
|
|
|
189
189
|
}
|
|
190
190
|
function assertAudience(token) {
|
|
191
191
|
if (!hasTokenAudience(token, config.audience)) {
|
|
192
|
-
throw new Error(`refusing to store a session token
|
|
192
|
+
throw new Error(`refusing to store a session token with the wrong audience (expected ${config.audience})`);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
function acceptable(token) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c1m-public/platform-auth",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Session and authorization helpers for C1M platform surfaces. The root is runtime-neutral (Web Request/Response): token/session reads, the first-party handoff (PKCE target + source), proxy session gate and coalesced refresh; ./next adds the server-only guard; ./access carries the resolved access snapshot, typed permission keys, predicates, a Next loader and React bindings",
|