cauthy-auth 0.27.0 → 0.27.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/cli.js +3 -1
- package/dist/client.d.mts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +2 -2
- package/dist/client.mjs.map +1 -1
- package/dist/index.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/dist/react.js +4 -4
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +4 -4
- package/dist/react.mjs.map +1 -1
- package/dist/svelte.d.mts +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/svelte.js +2 -2
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +2 -2
- package/dist/svelte.mjs.map +1 -1
- package/dist/{validate-BTRit1O1.d.mts → validate-YbEfIzfl.d.mts} +2 -2
- package/dist/{validate-BTRit1O1.d.ts → validate-YbEfIzfl.d.ts} +2 -2
- package/dist/vue.d.mts +1 -1
- package/dist/vue.d.ts +1 -1
- package/dist/vue.js +2 -2
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +2 -2
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -6,8 +6,8 @@ interface FieldProblem {
|
|
|
6
6
|
code: 'required' | 'invalid_email' | 'too_short' | 'too_long';
|
|
7
7
|
message: string;
|
|
8
8
|
}
|
|
9
|
-
/** The shortest password Cauthy takes for a new account. */
|
|
10
|
-
declare const MIN_PASSWORD =
|
|
9
|
+
/** The shortest password Cauthy takes for a new account: the API's own floor. */
|
|
10
|
+
declare const MIN_PASSWORD = 12;
|
|
11
11
|
declare function checkEmail(value: unknown): FieldProblem | null;
|
|
12
12
|
/** A password being typed to sign in: only that there is one. */
|
|
13
13
|
declare function checkPassword(value: unknown): FieldProblem | null;
|
|
@@ -6,8 +6,8 @@ interface FieldProblem {
|
|
|
6
6
|
code: 'required' | 'invalid_email' | 'too_short' | 'too_long';
|
|
7
7
|
message: string;
|
|
8
8
|
}
|
|
9
|
-
/** The shortest password Cauthy takes for a new account. */
|
|
10
|
-
declare const MIN_PASSWORD =
|
|
9
|
+
/** The shortest password Cauthy takes for a new account: the API's own floor. */
|
|
10
|
+
declare const MIN_PASSWORD = 12;
|
|
11
11
|
declare function checkEmail(value: unknown): FieldProblem | null;
|
|
12
12
|
/** A password being typed to sign in: only that there is one. */
|
|
13
13
|
declare function checkPassword(value: unknown): FieldProblem | null;
|
package/dist/vue.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ export { Account, AccountSession, AuthError, AuthMethods, AuthResult, Passkey, P
|
|
|
4
4
|
import { i as PublicSession } from './system-BxMsSIu1.mjs';
|
|
5
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';
|
|
6
6
|
import './theme.mjs';
|
|
7
|
-
import './validate-
|
|
7
|
+
import './validate-YbEfIzfl.mjs';
|
|
8
8
|
import 'jose';
|
|
9
9
|
|
|
10
10
|
interface CauthyVueSession extends Pick<SessionStore, 'refresh' | 'signIn' | 'signOut' | 'accountUrl' | 'basePath'> {
|
package/dist/vue.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { Account, AccountSession, AuthError, AuthMethods, AuthResult, Passkey, P
|
|
|
4
4
|
import { i as PublicSession } from './system-DTIeDXDP.js';
|
|
5
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';
|
|
6
6
|
import './theme.js';
|
|
7
|
-
import './validate-
|
|
7
|
+
import './validate-YbEfIzfl.js';
|
|
8
8
|
import 'jose';
|
|
9
9
|
|
|
10
10
|
interface CauthyVueSession extends Pick<SessionStore, 'refresh' | 'signIn' | 'signOut' | 'accountUrl' | 'basePath'> {
|
package/dist/vue.js
CHANGED
|
@@ -147,8 +147,8 @@ function fromWire(wire) {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
// src/validate.ts
|
|
150
|
-
var MIN_PASSWORD =
|
|
151
|
-
var MAX_PASSWORD =
|
|
150
|
+
var MIN_PASSWORD = 12;
|
|
151
|
+
var MAX_PASSWORD = 128;
|
|
152
152
|
var MAX_NAME = 120;
|
|
153
153
|
var EMAIL = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
154
154
|
function checkEmail(value) {
|