cauthy-auth 0.27.0 → 0.28.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cauthy-auth",
3
- "version": "0.27.0",
3
+ "version": "0.28.0",
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",
@@ -1,19 +0,0 @@
1
- type AuthField = 'email' | 'password' | 'newPassword' | 'name' | 'code' | 'organization';
2
- /** A value of a form that cannot be sent as it is. */
3
- interface FieldProblem {
4
- field: AuthField;
5
- /** Stable, for translating: `required`, `invalid_email`, `too_short`, `too_long`. */
6
- code: 'required' | 'invalid_email' | 'too_short' | 'too_long';
7
- message: string;
8
- }
9
- /** The shortest password Cauthy takes for a new account. */
10
- declare const MIN_PASSWORD = 8;
11
- declare function checkEmail(value: unknown): FieldProblem | null;
12
- /** A password being typed to sign in: only that there is one. */
13
- declare function checkPassword(value: unknown): FieldProblem | null;
14
- /** A password being chosen for a new account. */
15
- declare function checkNewPassword(value: unknown): FieldProblem | null;
16
- declare function checkName(value: unknown): FieldProblem | null;
17
- declare function checkCode(value: unknown): FieldProblem | null;
18
-
19
- export { type AuthField as A, type FieldProblem as F, MIN_PASSWORD as M, checkEmail as a, checkName as b, checkCode as c, checkNewPassword as d, checkPassword as e };
@@ -1,19 +0,0 @@
1
- type AuthField = 'email' | 'password' | 'newPassword' | 'name' | 'code' | 'organization';
2
- /** A value of a form that cannot be sent as it is. */
3
- interface FieldProblem {
4
- field: AuthField;
5
- /** Stable, for translating: `required`, `invalid_email`, `too_short`, `too_long`. */
6
- code: 'required' | 'invalid_email' | 'too_short' | 'too_long';
7
- message: string;
8
- }
9
- /** The shortest password Cauthy takes for a new account. */
10
- declare const MIN_PASSWORD = 8;
11
- declare function checkEmail(value: unknown): FieldProblem | null;
12
- /** A password being typed to sign in: only that there is one. */
13
- declare function checkPassword(value: unknown): FieldProblem | null;
14
- /** A password being chosen for a new account. */
15
- declare function checkNewPassword(value: unknown): FieldProblem | null;
16
- declare function checkName(value: unknown): FieldProblem | null;
17
- declare function checkCode(value: unknown): FieldProblem | null;
18
-
19
- export { type AuthField as A, type FieldProblem as F, MIN_PASSWORD as M, checkEmail as a, checkName as b, checkCode as c, checkNewPassword as d, checkPassword as e };