cauthy-auth 0.28.0 → 0.28.1

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-XkIbG5gE.mjs';
2
- import { S as Session } from './system-BxMsSIu1.mjs';
1
+ import { C as Cauthy } from './cauthy-CTVg4kvo.mjs';
2
+ import { S as Session } from './system-CVBW_AV8.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-DGAy45G2.js';
2
- import { S as Session } from './system-DTIeDXDP.js';
1
+ import { C as Cauthy } from './cauthy-BAwAJChs.js';
2
+ import { S as Session } from './system-Bn8uckvQ.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 { i as PublicSession } from './system-BxMsSIu1.mjs';
4
- export { P as PermissionOf, f as Policy, R as RoleOf, k as SessionOrganization, m as SessionUser, p as can, r as definePolicy } from './system-BxMsSIu1.mjs';
3
+ import { i as PublicSession } from './system-CVBW_AV8.mjs';
4
+ export { P as PermissionOf, f as Policy, R as RoleOf, k as SessionOrganization, m as SessionUser, p as can, r as definePolicy } from './system-CVBW_AV8.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 { i as PublicSession } from './system-DTIeDXDP.js';
4
- export { P as PermissionOf, f as Policy, R as RoleOf, k as SessionOrganization, m as SessionUser, p as can, r as definePolicy } from './system-DTIeDXDP.js';
3
+ import { i as PublicSession } from './system-Bn8uckvQ.js';
4
+ export { P as PermissionOf, f as Policy, R as RoleOf, k as SessionOrganization, m as SessionUser, p as can, r as definePolicy } from './system-Bn8uckvQ.js';
5
5
  import './theme.js';
6
6
  import './validate-sEXG82po.js';
7
7
  import 'jose';
@@ -136,9 +136,11 @@ interface CauthyOptions {
136
136
  /** Where the routes are mounted. Default: `/api/auth`. */
137
137
  basePath?: string;
138
138
  /**
139
- * The application's own public origin (`https://app.example.com`), for the
140
- * redirect URI. Default: the origin of each request, which is right unless
141
- * a proxy hides it.
139
+ * The application's own public origin (`https://app.example.com`): the
140
+ * redirect URI, the cookies' `Secure` flag and which forms are its own come
141
+ * from it. Default: `CAUTHY_BASE_URL`, else the origin of each request, with
142
+ * the scheme a proxy names in `x-forwarded-proto`. Set it whenever a proxy
143
+ * also changes the host or the port.
142
144
  */
143
145
  baseURL?: string;
144
146
  /** Where a person lands after signing in, when no `return_to` was asked. Default: `/`. */
@@ -136,9 +136,11 @@ interface CauthyOptions {
136
136
  /** Where the routes are mounted. Default: `/api/auth`. */
137
137
  basePath?: string;
138
138
  /**
139
- * The application's own public origin (`https://app.example.com`), for the
140
- * redirect URI. Default: the origin of each request, which is right unless
141
- * a proxy hides it.
139
+ * The application's own public origin (`https://app.example.com`): the
140
+ * redirect URI, the cookies' `Secure` flag and which forms are its own come
141
+ * from it. Default: `CAUTHY_BASE_URL`, else the origin of each request, with
142
+ * the scheme a proxy names in `x-forwarded-proto`. Set it whenever a proxy
143
+ * also changes the host or the port.
142
144
  */
143
145
  baseURL?: string;
144
146
  /** Where a person lands after signing in, when no `return_to` was asked. Default: `/`. */
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 { i as PublicSession } from './system-BxMsSIu1.mjs';
5
- export { P as PermissionOf, f as Policy, R as RoleOf, k as SessionOrganization, m as SessionUser, p as can, r as definePolicy } from './system-BxMsSIu1.mjs';
4
+ import { i as PublicSession } from './system-CVBW_AV8.mjs';
5
+ export { P as PermissionOf, f as Policy, R as RoleOf, k as SessionOrganization, m as SessionUser, p as can, r as definePolicy } from './system-CVBW_AV8.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 { i as PublicSession } from './system-DTIeDXDP.js';
5
- export { P as PermissionOf, f as Policy, R as RoleOf, k as SessionOrganization, m as SessionUser, p as can, r as definePolicy } from './system-DTIeDXDP.js';
4
+ import { i as PublicSession } from './system-Bn8uckvQ.js';
5
+ export { P as PermissionOf, f as Policy, R as RoleOf, k as SessionOrganization, m as SessionUser, p as can, r as definePolicy } from './system-Bn8uckvQ.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.28.0",
3
+ "version": "0.28.1",
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",