cauthy-auth 0.38.1 → 0.38.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.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as Cauthy } from './cauthy-C-GoRXy9.mjs';
2
- import { S as Session } from './system-DUGV040y.mjs';
1
+ import { C as Cauthy } from './cauthy-3h6d8YXl.mjs';
2
+ import { S as Session } from './system-CqPa5xR5.mjs';
3
3
  import 'jose';
4
4
  import './theme.mjs';
5
5
 
package/dist/next.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as Cauthy } from './cauthy-BUozWD72.js';
2
- import { S as Session } from './system-Bz4haPrI.js';
1
+ import { C as Cauthy } from './cauthy-C-_Bj6-L.js';
2
+ import { S as Session } from './system-Dssq1JUJ.js';
3
3
  import 'jose';
4
4
  import './theme.js';
5
5
 
package/dist/svelte.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { SessionStore, SessionState, SessionStoreOptions } from './client.mjs';
2
2
  export { Account, AccountSession, AuthClient, AuthError, AuthMethods, AuthResult, Passkey, PasskeyKind, SSOConnection } from './client.mjs';
3
- import { q as PublicSession } from './system-DUGV040y.mjs';
4
- export { P as PermissionOf, m as Policy, R as RoleOf, s as SessionOrganization, u as SessionUser, y as can, B as definePolicy } from './system-DUGV040y.mjs';
3
+ import { q as PublicSession } from './system-CqPa5xR5.mjs';
4
+ export { P as PermissionOf, m as Policy, R as RoleOf, s as SessionOrganization, u as SessionUser, y as can, B as definePolicy } from './system-CqPa5xR5.mjs';
5
5
  import './theme.mjs';
6
6
  import './validate-sEXG82po.mjs';
7
7
  import 'jose';
package/dist/svelte.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { SessionStore, SessionState, SessionStoreOptions } from './client.js';
2
2
  export { Account, AccountSession, AuthClient, AuthError, AuthMethods, AuthResult, Passkey, PasskeyKind, SSOConnection } from './client.js';
3
- import { q as PublicSession } from './system-Bz4haPrI.js';
4
- export { P as PermissionOf, m as Policy, R as RoleOf, s as SessionOrganization, u as SessionUser, y as can, B as definePolicy } from './system-Bz4haPrI.js';
3
+ import { q as PublicSession } from './system-Dssq1JUJ.js';
4
+ export { P as PermissionOf, m as Policy, R as RoleOf, s as SessionOrganization, u as SessionUser, y as can, B as definePolicy } from './system-Dssq1JUJ.js';
5
5
  import './theme.js';
6
6
  import './validate-sEXG82po.js';
7
7
  import 'jose';
@@ -439,6 +439,12 @@ interface SystemKey {
439
439
  privateKey: string | JWK;
440
440
  /** The id the public key is published under (`kid`). */
441
441
  keyId: string;
442
+ /**
443
+ * The client the key belongs to, when it is not the one people sign in
444
+ * with: a public sign-in client has no key of its own, and the system's
445
+ * identity is a confidential client beside it. Default: the client id.
446
+ */
447
+ clientId?: string;
442
448
  }
443
449
  interface SystemOptions {
444
450
  /** Cauthy's address. Default: `CAUTHY_ISSUER`. */
@@ -439,6 +439,12 @@ interface SystemKey {
439
439
  privateKey: string | JWK;
440
440
  /** The id the public key is published under (`kid`). */
441
441
  keyId: string;
442
+ /**
443
+ * The client the key belongs to, when it is not the one people sign in
444
+ * with: a public sign-in client has no key of its own, and the system's
445
+ * identity is a confidential client beside it. Default: the client id.
446
+ */
447
+ clientId?: string;
442
448
  }
443
449
  interface SystemOptions {
444
450
  /** Cauthy's address. Default: `CAUTHY_ISSUER`. */
package/dist/vue.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { ShallowRef, Plugin } from 'vue';
2
2
  import { SessionStore, SessionState, SessionStoreOptions, AuthClient } from './client.mjs';
3
3
  export { Account, AccountSession, AuthError, AuthMethods, AuthResult, Passkey, PasskeyKind, SSOConnection } from './client.mjs';
4
- import { q as PublicSession } from './system-DUGV040y.mjs';
5
- export { P as PermissionOf, m as Policy, R as RoleOf, s as SessionOrganization, u as SessionUser, y as can, B as definePolicy } from './system-DUGV040y.mjs';
4
+ import { q as PublicSession } from './system-CqPa5xR5.mjs';
5
+ export { P as PermissionOf, m as Policy, R as RoleOf, s as SessionOrganization, u as SessionUser, y as can, B as definePolicy } from './system-CqPa5xR5.mjs';
6
6
  import './theme.mjs';
7
7
  import './validate-sEXG82po.mjs';
8
8
  import 'jose';
package/dist/vue.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { ShallowRef, Plugin } from 'vue';
2
2
  import { SessionStore, SessionState, SessionStoreOptions, AuthClient } from './client.js';
3
3
  export { Account, AccountSession, AuthError, AuthMethods, AuthResult, Passkey, PasskeyKind, SSOConnection } from './client.js';
4
- import { q as PublicSession } from './system-Bz4haPrI.js';
5
- export { P as PermissionOf, m as Policy, R as RoleOf, s as SessionOrganization, u as SessionUser, y as can, B as definePolicy } from './system-Bz4haPrI.js';
4
+ import { q as PublicSession } from './system-Dssq1JUJ.js';
5
+ export { P as PermissionOf, m as Policy, R as RoleOf, s as SessionOrganization, u as SessionUser, y as can, B as definePolicy } from './system-Dssq1JUJ.js';
6
6
  import './theme.js';
7
7
  import './validate-sEXG82po.js';
8
8
  import 'jose';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cauthy-auth",
3
- "version": "0.38.1",
3
+ "version": "0.38.2",
4
4
  "description": "Sign in with Cauthy: one route to mount, getSession on the server, useSession in the browser. No database, no screens to build.",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",