@sqrzro/auth 2.0.0-bz.7 → 2.0.0-bz.8

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @sqrzro/auth@2.0.0-bz.6 build /Users/richard/Sites/@sqrzro/sqrzro/packages/auth
2
+ > @sqrzro/auth@2.0.0-bz.7 build /Users/richard/Sites/@sqrzro/sqrzro/packages/auth
3
3
  > tsc -p tsconfig.json
4
4
 
@@ -1,36 +1,122 @@
1
1
 
2
- > @sqrzro/auth@2.0.0-bz.6 dev /Users/richard/Sites/@sqrzro/sqrzro/packages/auth
2
+ > @sqrzro/auth@2.0.0-bz.7 dev /Users/richard/Sites/@sqrzro/sqrzro/packages/auth
3
3
  > tsc -p tsconfig.json --watch
4
4
 
5
- c[1:59:10 PM] Starting compilation in watch mode...
5
+ c[8:15:08 PM] Starting compilation in watch mode...
6
6
 
7
- [1:59:12 PM] Found 0 errors. Watching for file changes.
7
+ src/components/LoginForm/index.tsx:25:14 - error TS2322: Type '{ children: Element[]; classNames: { root: string; }; action: (formData: FormData) => void; errors: Record<string, string>; formData: Partial<LoginFormFields>; hiddenFields?: string[]; innerRef: RefObject<...>; isLoading: boolean; }' is not assignable to type 'Readonly<FormProps>'.
8
+ The types returned by 'action(...)' are incompatible between these types.
9
+ Type 'void' is not assignable to type 'Promise<void>'.
8
10
 
9
- c[1:59:13 PM] File change detected. Starting incremental compilation...
11
+ 25 <Form {...formProps} classNames={{ root: classNames?.form }}>
12
+    ~~~~
10
13
 
11
- [1:59:13 PM] Found 0 errors. Watching for file changes.
14
+ src/components/MFAForm/index.tsx:14:10 - error TS2322: Type '{ children: Element[]; action: (formData: FormData) => void; errors: Record<string, string>; formData: MFAFormFields; hiddenFields?: string[]; innerRef: RefObject<HTMLFormElement>; isLoading: boolean; }' is not assignable to type 'Readonly<FormProps>'.
15
+ Types of property 'action' are incompatible.
16
+ Type '(formData: FormData) => void' is not assignable to type '(formData: FormData) => Promise<void>'.
12
17
 
13
- c[1:59:15 PM] File change detected. Starting incremental compilation...
18
+ 14 <Form {...formProps}>
19
+    ~~~~
14
20
 
15
- [1:59:15 PM] Found 0 errors. Watching for file changes.
21
+ src/components/PasswordForm/index.tsx:51:18 - error TS2322: Type '{ children: Element[]; classNames: { root: string; }; action: (formData: FormData) => void; errors: Record<string, string>; formData: Partial<PasswordFormFields>; hiddenFields?: string[]; innerRef: RefObject<...>; isLoading: boolean; }' is not assignable to type 'Readonly<FormProps>'.
22
+ Types of property 'action' are incompatible.
23
+ Type '(formData: FormData) => void' is not assignable to type '(formData: FormData) => Promise<void>'.
16
24
 
17
- c[1:59:19 PM] File change detected. Starting incremental compilation...
25
+ 51 <Form {...formProps} classNames={{ root: classNames?.form }}>
26
+    ~~~~
18
27
 
19
- [1:59:19 PM] Found 0 errors. Watching for file changes.
28
+ src/components/PasswordResetForm/index.tsx:33:10 - error TS2322: Type '{ children: Element[]; classNames: { root: string; }; action: (formData: FormData) => void; errors: Record<string, string>; formData: Partial<PasswordResetFormFields>; hiddenFields?: string[]; innerRef: RefObject<...>; isLoading: boolean; }' is not assignable to type 'Readonly<FormProps>'.
29
+ Types of property 'action' are incompatible.
30
+ Type '(formData: FormData) => void' is not assignable to type '(formData: FormData) => Promise<void>'.
20
31
 
21
- c[2:56:35 PM] File change detected. Starting incremental compilation...
32
+ 33 <Form {...formProps} classNames={{ root: classNames?.form }}>
33
+    ~~~~
22
34
 
23
- [2:56:35 PM] Found 0 errors. Watching for file changes.
35
+ src/server.ts:4:5 - error TS2305: Module '"@sqrzro/server/auth"' has no exported member 'handleLoginForm'.
24
36
 
25
- c[2:56:41 PM] File change detected. Starting incremental compilation...
37
+ 4 handleLoginForm,
38
+    ~~~~~~~~~~~~~~~
26
39
 
27
- [2:56:41 PM] Found 0 errors. Watching for file changes.
40
+ src/server.ts:5:5 - error TS2305: Module '"@sqrzro/server/auth"' has no exported member 'handleLogout'.
28
41
 
29
- c[2:57:45 PM] File change detected. Starting incremental compilation...
42
+ 5 handleLogout,
43
+    ~~~~~~~~~~~~
30
44
 
31
- [2:57:46 PM] Found 0 errors. Watching for file changes.
45
+ src/server.ts:6:5 - error TS2305: Module '"@sqrzro/server/auth"' has no exported member 'handleMFAForm'.
32
46
 
33
- c[3:01:10 PM] File change detected. Starting incremental compilation...
47
+ 6 handleMFAForm,
48
+    ~~~~~~~~~~~~~
34
49
 
35
- [3:01:10 PM] Found 0 errors. Watching for file changes.
50
+ src/server.ts:7:5 - error TS2305: Module '"@sqrzro/server/auth"' has no exported member 'handlePasswordForm'.
51
+
52
+ 7 handlePasswordForm,
53
+    ~~~~~~~~~~~~~~~~~~
54
+
55
+ src/server.ts:8:5 - error TS2305: Module '"@sqrzro/server/auth"' has no exported member 'handlePasswordResetWithTokenForm'.
56
+
57
+ 8 handlePasswordResetWithTokenForm,
58
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
59
+
60
+ src/server.ts:9:5 - error TS2305: Module '"@sqrzro/server/auth"' has no exported member 'checkUserHasMFA'.
61
+
62
+ 9 checkUserHasMFA as serverCheckUserHasMFA,
63
+    ~~~~~~~~~~~~~~~
64
+
65
+ src/server.ts:10:5 - error TS2305: Module '"@sqrzro/server/auth"' has no exported member 'generateMFA'.
66
+
67
+ 10 generateMFA as serverGenerateMFA,
68
+    ~~~~~~~~~~~
69
+
70
+ src/server.ts:11:5 - error TS2305: Module '"@sqrzro/server/auth"' has no exported member 'getSessionUser'.
71
+
72
+ 11 getSessionUser as serverGetSessionUser,
73
+    ~~~~~~~~~~~~~~
74
+
75
+ src/server.ts:12:5 - error TS2305: Module '"@sqrzro/server/auth"' has no exported member 'checkMFAEnabled'.
76
+
77
+ 12 checkMFAEnabled as syncCheckMFAEnabled,
78
+    ~~~~~~~~~~~~~~~
79
+
80
+ src/server.ts:14:15 - error TS2305: Module '"@sqrzro/server/auth"' has no exported member 'LoginFormFields'.
81
+
82
+ 14 import type { LoginFormFields, MFAFormFields, UserObject } from '@sqrzro/server/auth';
83
+    ~~~~~~~~~~~~~~~
84
+
85
+ src/server.ts:14:32 - error TS2305: Module '"@sqrzro/server/auth"' has no exported member 'MFAFormFields'.
86
+
87
+ 14 import type { LoginFormFields, MFAFormFields, UserObject } from '@sqrzro/server/auth';
88
+    ~~~~~~~~~~~~~
89
+
90
+ src/server.ts:14:47 - error TS2305: Module '"@sqrzro/server/auth"' has no exported member 'UserObject'.
91
+
92
+ 14 import type { LoginFormFields, MFAFormFields, UserObject } from '@sqrzro/server/auth';
93
+    ~~~~~~~~~~
94
+
95
+ src/server.ts:17:15 - error TS2305: Module '"@sqrzro/server/auth"' has no exported member 'MFAFormFields'.
96
+
97
+ 17 export type { MFAFormFields, ScopeObject } from '@sqrzro/server/auth';
98
+    ~~~~~~~~~~~~~
99
+
100
+ src/server.ts:17:30 - error TS2305: Module '"@sqrzro/server/auth"' has no exported member 'ScopeObject'.
101
+
102
+ 17 export type { MFAFormFields, ScopeObject } from '@sqrzro/server/auth';
103
+    ~~~~~~~~~~~
104
+
105
+ [8:15:10 PM] Found 18 errors. Watching for file changes.
106
+
107
+ c[8:15:12 PM] File change detected. Starting incremental compilation...
108
+
109
+ src/components/LoginForm/index.tsx:25:14 - error TS2322: Type '{ children: Element[]; classNames: { root: string; }; action: (formData: FormData) => void; errors: Record<string, string>; formData: Partial<LoginFormFields>; hiddenFields?: string[]; innerRef: RefObject<...>; isLoading: boolean; }' is not assignable to type 'Readonly<FormProps>'.
110
+ The types returned by 'action(...)' are incompatible between these types.
111
+ Type 'void' is not assignable to type 'Promise<void>'.
112
+
113
+ 25 <Form {...formProps} classNames={{ root: classNames?.form }}>
114
+    ~~~~
115
+
116
+ src/components/MFAForm/index.tsx:14:10 - error TS2322: Type '{ children: Element[]; action: (formData: FormData) => void; errors: Record<string, string>; formData: MFAFormFields; hiddenFields?: string[]; innerRef: RefObject<HTMLFormElement>; isLoading: boolean; }' is not assignable to type 'Readonly<FormProps>'.
117
+ Types of property 'action' are incompatible.
118
+ Type '(formData: FormData) => void' is not assignable to type '(formData: FormData) => Promise<void>'.
119
+
120
+ 14 <Form {...formProps}>
121
+    ~~~~
36
122
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sqrzro/auth",
3
3
  "type": "module",
4
- "version": "2.0.0-bz.7",
4
+ "version": "2.0.0-bz.8",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "dependencies": {
@@ -9,7 +9,7 @@
9
9
  "@sqrzro/hooks": "bz",
10
10
  "@sqrzro/interfaces": "bz",
11
11
  "@sqrzro/server": "bz",
12
- "next": "15.0.2",
12
+ "next": "15.0.3",
13
13
  "react": "rc"
14
14
  },
15
15
  "devDependencies": {