@meistrari/auth-core 1.39.2 → 1.39.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/dist/index.d.mts +3184 -4659
- package/dist/index.d.ts +3184 -4659
- package/dist/index.mjs +37 -18
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -21,7 +21,7 @@ function isTokenExpired(token, expiresInMs) {
|
|
|
21
21
|
return nowInSeconds > expirationTime;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
const version = "1.39.
|
|
24
|
+
const version = "1.39.3";
|
|
25
25
|
|
|
26
26
|
function parsedEnumValues(schema) {
|
|
27
27
|
return Object.fromEntries(
|
|
@@ -354,6 +354,41 @@ function applicationsPluginClient() {
|
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
356
|
|
|
357
|
+
function customEndpointsPluginClient() {
|
|
358
|
+
return {
|
|
359
|
+
id: "custom-endpoints",
|
|
360
|
+
getActions: ($fetch) => ({
|
|
361
|
+
customEndpoints: {
|
|
362
|
+
organizations: {
|
|
363
|
+
apiKeys: async () => {
|
|
364
|
+
return await $fetch("/custom-endpoints/organizations/api-keys");
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
teams: {
|
|
368
|
+
members: async (teamId) => {
|
|
369
|
+
return await $fetch(`/custom-endpoints/teams/${teamId}/members`);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
})
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
function handshakePluginClient() {
|
|
378
|
+
return {
|
|
379
|
+
id: "handshake",
|
|
380
|
+
getActions: ($fetch) => ({
|
|
381
|
+
handshake: {
|
|
382
|
+
noncePayload: async (nonce) => {
|
|
383
|
+
return await $fetch("/handshake/nonce-payload", {
|
|
384
|
+
query: { nonce }
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
})
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
|
|
357
392
|
function sessionAssurancePluginClient() {
|
|
358
393
|
return {
|
|
359
394
|
id: "session-assurance",
|
|
@@ -382,18 +417,6 @@ function sessionAssurancePluginClient() {
|
|
|
382
417
|
};
|
|
383
418
|
}
|
|
384
419
|
|
|
385
|
-
function customEndpointsPluginClient() {
|
|
386
|
-
return {
|
|
387
|
-
id: "custom-endpoints",
|
|
388
|
-
$InferServerPlugin: {}
|
|
389
|
-
};
|
|
390
|
-
}
|
|
391
|
-
function handshakePluginClient() {
|
|
392
|
-
return {
|
|
393
|
-
id: "handshake",
|
|
394
|
-
$InferServerPlugin: {}
|
|
395
|
-
};
|
|
396
|
-
}
|
|
397
420
|
function createAPIClient(apiUrl, fetchOptions = {}) {
|
|
398
421
|
const serviceName = typeof process !== "undefined" ? process.env.SERVICE_NAME : "";
|
|
399
422
|
const userAgent = `auth-sdk:core:${version}${serviceName ? `@${serviceName}` : ""}`;
|
|
@@ -1971,11 +1994,7 @@ class SessionService {
|
|
|
1971
1994
|
* @returns The JWT token for the nonce
|
|
1972
1995
|
*/
|
|
1973
1996
|
async getNoncePayload(nonce) {
|
|
1974
|
-
return await this.client.handshake.noncePayload(
|
|
1975
|
-
query: {
|
|
1976
|
-
nonce
|
|
1977
|
-
}
|
|
1978
|
-
});
|
|
1997
|
+
return await this.client.handshake.noncePayload(nonce);
|
|
1979
1998
|
}
|
|
1980
1999
|
}
|
|
1981
2000
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meistrari/auth-core",
|
|
3
|
-
"version": "1.39.
|
|
3
|
+
"version": "1.39.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"docs": "typedoc"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@better-auth/api-key": "1.
|
|
22
|
-
"@better-auth/sso": "1.
|
|
23
|
-
"better-auth": "1.
|
|
21
|
+
"@better-auth/api-key": "1.6.26",
|
|
22
|
+
"@better-auth/sso": "1.6.26",
|
|
23
|
+
"better-auth": "1.6.26",
|
|
24
24
|
"jose": "6.1.3",
|
|
25
25
|
"zod": "4.3.6"
|
|
26
26
|
},
|