@absolutejs/auth 0.29.0-beta.2 → 0.29.0-beta.3
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/compliance/routes.d.ts +2 -2
- package/dist/credentials/emailVerification.d.ts +1 -1
- package/dist/credentials/login.d.ts +4 -4
- package/dist/credentials/passwordReset.d.ts +3 -3
- package/dist/credentials/routes.d.ts +8 -8
- package/dist/htmx/routes.d.ts +12 -12
- package/dist/index.d.ts +208 -87
- package/dist/index.js +416 -3
- package/dist/index.js.map +9 -8
- package/dist/mfa/challenge.d.ts +1 -1
- package/dist/mfa/routes.d.ts +4 -4
- package/dist/mfa/totp.d.ts +3 -3
- package/dist/oidc/config.d.ts +5 -1
- package/dist/oidc/inMemoryStores.d.ts +3 -1
- package/dist/oidc/postgresStores.d.ts +93 -1
- package/dist/oidc/registration.d.ts +131 -0
- package/dist/oidc/routes.d.ts +120 -0
- package/dist/oidc/types.d.ts +16 -0
- package/dist/organizations/routes.d.ts +16 -16
- package/dist/passwordless/routes.d.ts +4 -4
- package/dist/portal/routes.d.ts +10 -10
- package/dist/providers/clients.d.ts +2 -2
- package/dist/roles/routes.d.ts +5 -5
- package/dist/routes/authorize.d.ts +2 -2
- package/dist/routes/profile.d.ts +1 -1
- package/dist/routes/refresh.d.ts +2 -2
- package/dist/routes/revoke.d.ts +2 -2
- package/dist/routes/sessions.d.ts +6 -6
- package/dist/routes/signout.d.ts +1 -1
- package/dist/routes/userStatus.d.ts +1 -1
- package/dist/sso/discoveryRoute.d.ts +1 -1
- package/dist/sso/oidcRoutes.d.ts +2 -2
- package/dist/sso/samlRoutes.d.ts +5 -5
- package/dist/webauthn/routes.d.ts +5 -5
- package/package.json +1 -1
|
@@ -27,10 +27,10 @@ export declare const complianceRoutes: <UserType>({ authSessionStore, compliance
|
|
|
27
27
|
query: unknown;
|
|
28
28
|
headers: unknown;
|
|
29
29
|
response: {
|
|
30
|
+
401: "Authentication required";
|
|
30
31
|
200: {
|
|
31
32
|
[x: string]: unknown;
|
|
32
33
|
};
|
|
33
|
-
401: "Authentication required";
|
|
34
34
|
422: {
|
|
35
35
|
type: "validation";
|
|
36
36
|
on: string;
|
|
@@ -52,10 +52,10 @@ export declare const complianceRoutes: <UserType>({ authSessionStore, compliance
|
|
|
52
52
|
query: unknown;
|
|
53
53
|
headers: unknown;
|
|
54
54
|
response: {
|
|
55
|
+
401: "Authentication required";
|
|
55
56
|
200: {
|
|
56
57
|
readonly deleted: true;
|
|
57
58
|
};
|
|
58
|
-
401: "Authentication required";
|
|
59
59
|
422: {
|
|
60
60
|
type: "validation";
|
|
61
61
|
on: string;
|
|
@@ -25,10 +25,10 @@ export declare const credentialsEmailVerification: <UserType>({ credentialStore,
|
|
|
25
25
|
query: unknown;
|
|
26
26
|
headers: unknown;
|
|
27
27
|
response: {
|
|
28
|
+
400: "Invalid or expired verification token";
|
|
28
29
|
200: {
|
|
29
30
|
readonly status: "email_verified";
|
|
30
31
|
};
|
|
31
|
-
400: "Invalid or expired verification token";
|
|
32
32
|
422: {
|
|
33
33
|
type: "validation";
|
|
34
34
|
on: string;
|
|
@@ -29,16 +29,16 @@ export declare const credentialsLogin: <UserType>({ authSessionStore, checkBreac
|
|
|
29
29
|
query: unknown;
|
|
30
30
|
headers: unknown;
|
|
31
31
|
response: {
|
|
32
|
+
401: "Invalid email or password";
|
|
33
|
+
403: {
|
|
34
|
+
readonly status: "email_not_verified";
|
|
35
|
+
};
|
|
32
36
|
200: {
|
|
33
37
|
readonly status: "mfa_required";
|
|
34
38
|
} | {
|
|
35
39
|
readonly passwordCompromised: boolean;
|
|
36
40
|
readonly status: "authenticated";
|
|
37
41
|
};
|
|
38
|
-
401: "Invalid email or password";
|
|
39
|
-
403: {
|
|
40
|
-
readonly status: "email_not_verified";
|
|
41
|
-
};
|
|
42
42
|
422: {
|
|
43
43
|
type: "validation";
|
|
44
44
|
on: string;
|
|
@@ -53,13 +53,13 @@ export declare const credentialsPasswordReset: <UserType>({ credentialStore, onP
|
|
|
53
53
|
query: unknown;
|
|
54
54
|
headers: unknown;
|
|
55
55
|
response: {
|
|
56
|
-
200: {
|
|
57
|
-
readonly status: "password_reset";
|
|
58
|
-
};
|
|
59
56
|
400: "Invalid or expired reset token" | {
|
|
60
57
|
readonly message: "Password does not meet the policy";
|
|
61
58
|
readonly violations: import("./passwordPolicy").PasswordPolicyViolation[];
|
|
62
59
|
};
|
|
60
|
+
200: {
|
|
61
|
+
readonly status: "password_reset";
|
|
62
|
+
};
|
|
63
63
|
422: {
|
|
64
64
|
type: "validation";
|
|
65
65
|
on: string;
|
|
@@ -43,10 +43,10 @@ export declare const credentialRoutes: <UserType>(config: CredentialRouteProps<U
|
|
|
43
43
|
query: unknown;
|
|
44
44
|
headers: unknown;
|
|
45
45
|
response: {
|
|
46
|
+
400: "Invalid or expired verification token";
|
|
46
47
|
200: {
|
|
47
48
|
readonly status: "email_verified";
|
|
48
49
|
};
|
|
49
|
-
400: "Invalid or expired verification token";
|
|
50
50
|
422: {
|
|
51
51
|
type: "validation";
|
|
52
52
|
on: string;
|
|
@@ -97,16 +97,16 @@ export declare const credentialRoutes: <UserType>(config: CredentialRouteProps<U
|
|
|
97
97
|
query: unknown;
|
|
98
98
|
headers: unknown;
|
|
99
99
|
response: {
|
|
100
|
+
401: "Invalid email or password";
|
|
101
|
+
403: {
|
|
102
|
+
readonly status: "email_not_verified";
|
|
103
|
+
};
|
|
100
104
|
200: {
|
|
101
105
|
readonly status: "mfa_required";
|
|
102
106
|
} | {
|
|
103
107
|
readonly passwordCompromised: boolean;
|
|
104
108
|
readonly status: "authenticated";
|
|
105
109
|
};
|
|
106
|
-
401: "Invalid email or password";
|
|
107
|
-
403: {
|
|
108
|
-
readonly status: "email_not_verified";
|
|
109
|
-
};
|
|
110
110
|
422: {
|
|
111
111
|
type: "validation";
|
|
112
112
|
on: string;
|
|
@@ -161,13 +161,13 @@ export declare const credentialRoutes: <UserType>(config: CredentialRouteProps<U
|
|
|
161
161
|
query: unknown;
|
|
162
162
|
headers: unknown;
|
|
163
163
|
response: {
|
|
164
|
-
200: {
|
|
165
|
-
readonly status: "password_reset";
|
|
166
|
-
};
|
|
167
164
|
400: "Invalid or expired reset token" | {
|
|
168
165
|
readonly message: "Password does not meet the policy";
|
|
169
166
|
readonly violations: import("./passwordPolicy").PasswordPolicyViolation[];
|
|
170
167
|
};
|
|
168
|
+
200: {
|
|
169
|
+
readonly status: "password_reset";
|
|
170
|
+
};
|
|
171
171
|
422: {
|
|
172
172
|
type: "validation";
|
|
173
173
|
on: string;
|
package/dist/htmx/routes.d.ts
CHANGED
|
@@ -126,9 +126,9 @@ export declare const createAuthHtmxRoutes: <UserType extends AuthHtmxUser>(confi
|
|
|
126
126
|
query: unknown;
|
|
127
127
|
headers: unknown;
|
|
128
128
|
response: {
|
|
129
|
-
200: Response;
|
|
130
129
|
400: "Cookies are missing";
|
|
131
130
|
401: "User is not authenticated";
|
|
131
|
+
200: Response;
|
|
132
132
|
422: {
|
|
133
133
|
type: "validation";
|
|
134
134
|
on: string;
|
|
@@ -151,9 +151,9 @@ export declare const createAuthHtmxRoutes: <UserType extends AuthHtmxUser>(confi
|
|
|
151
151
|
query: unknown;
|
|
152
152
|
headers: unknown;
|
|
153
153
|
response: {
|
|
154
|
-
200: Response;
|
|
155
154
|
400: "Cookies are missing";
|
|
156
155
|
401: "User is not authenticated";
|
|
156
|
+
200: Response;
|
|
157
157
|
422: {
|
|
158
158
|
type: "validation";
|
|
159
159
|
on: string;
|
|
@@ -176,9 +176,9 @@ export declare const createAuthHtmxRoutes: <UserType extends AuthHtmxUser>(confi
|
|
|
176
176
|
query: unknown;
|
|
177
177
|
headers: unknown;
|
|
178
178
|
response: {
|
|
179
|
-
200: Response;
|
|
180
179
|
400: "Cookies are missing";
|
|
181
180
|
401: "User is not authenticated";
|
|
181
|
+
200: Response;
|
|
182
182
|
422: {
|
|
183
183
|
type: "validation";
|
|
184
184
|
on: string;
|
|
@@ -201,9 +201,9 @@ export declare const createAuthHtmxRoutes: <UserType extends AuthHtmxUser>(confi
|
|
|
201
201
|
query: unknown;
|
|
202
202
|
headers: unknown;
|
|
203
203
|
response: {
|
|
204
|
-
200: {} | Response;
|
|
205
204
|
400: "Cookies are missing";
|
|
206
205
|
401: "User is not authenticated";
|
|
206
|
+
200: {} | Response;
|
|
207
207
|
422: {
|
|
208
208
|
type: "validation";
|
|
209
209
|
on: string;
|
|
@@ -230,9 +230,9 @@ export declare const createAuthHtmxRoutes: <UserType extends AuthHtmxUser>(confi
|
|
|
230
230
|
query: unknown;
|
|
231
231
|
headers: unknown;
|
|
232
232
|
response: {
|
|
233
|
-
200: {} | Response;
|
|
234
233
|
400: "Cookies are missing";
|
|
235
234
|
401: "User is not authenticated";
|
|
235
|
+
200: {} | Response;
|
|
236
236
|
422: {
|
|
237
237
|
type: "validation";
|
|
238
238
|
on: string;
|
|
@@ -260,9 +260,9 @@ export declare const createAuthHtmxRoutes: <UserType extends AuthHtmxUser>(confi
|
|
|
260
260
|
query: unknown;
|
|
261
261
|
headers: unknown;
|
|
262
262
|
response: {
|
|
263
|
-
200: {} | Response;
|
|
264
263
|
400: "Cookies are missing";
|
|
265
264
|
401: "User is not authenticated";
|
|
265
|
+
200: {} | Response;
|
|
266
266
|
422: {
|
|
267
267
|
type: "validation";
|
|
268
268
|
on: string;
|
|
@@ -289,9 +289,9 @@ export declare const createAuthHtmxRoutes: <UserType extends AuthHtmxUser>(confi
|
|
|
289
289
|
query: unknown;
|
|
290
290
|
headers: unknown;
|
|
291
291
|
response: {
|
|
292
|
-
200: {} | Response;
|
|
293
292
|
400: "Cookies are missing";
|
|
294
293
|
401: "User is not authenticated";
|
|
294
|
+
200: {} | Response;
|
|
295
295
|
422: {
|
|
296
296
|
type: "validation";
|
|
297
297
|
on: string;
|
|
@@ -318,9 +318,9 @@ export declare const createAuthHtmxRoutes: <UserType extends AuthHtmxUser>(confi
|
|
|
318
318
|
query: unknown;
|
|
319
319
|
headers: unknown;
|
|
320
320
|
response: {
|
|
321
|
-
200: {} | Response;
|
|
322
321
|
400: "Cookies are missing";
|
|
323
322
|
401: "User is not authenticated";
|
|
323
|
+
200: {} | Response;
|
|
324
324
|
422: {
|
|
325
325
|
type: "validation";
|
|
326
326
|
on: string;
|
|
@@ -344,9 +344,9 @@ export declare const createAuthHtmxRoutes: <UserType extends AuthHtmxUser>(confi
|
|
|
344
344
|
query: unknown;
|
|
345
345
|
headers: unknown;
|
|
346
346
|
response: {
|
|
347
|
-
200: Response;
|
|
348
347
|
400: "Cookies are missing";
|
|
349
348
|
401: "User is not authenticated";
|
|
349
|
+
200: Response;
|
|
350
350
|
422: {
|
|
351
351
|
type: "validation";
|
|
352
352
|
on: string;
|
|
@@ -373,9 +373,9 @@ export declare const createAuthHtmxRoutes: <UserType extends AuthHtmxUser>(confi
|
|
|
373
373
|
query: unknown;
|
|
374
374
|
headers: unknown;
|
|
375
375
|
response: {
|
|
376
|
-
200: {} | Response;
|
|
377
376
|
400: "Cookies are missing";
|
|
378
377
|
401: "User is not authenticated";
|
|
378
|
+
200: {} | Response;
|
|
379
379
|
422: {
|
|
380
380
|
type: "validation";
|
|
381
381
|
on: string;
|
|
@@ -404,9 +404,9 @@ export declare const createAuthHtmxRoutes: <UserType extends AuthHtmxUser>(confi
|
|
|
404
404
|
query: unknown;
|
|
405
405
|
headers: unknown;
|
|
406
406
|
response: {
|
|
407
|
-
200: {} | Response;
|
|
408
407
|
400: "Cookies are missing";
|
|
409
408
|
401: "User is not authenticated";
|
|
409
|
+
200: {} | Response;
|
|
410
410
|
422: {
|
|
411
411
|
type: "validation";
|
|
412
412
|
on: string;
|
|
@@ -454,9 +454,9 @@ export declare const createAuthHtmxRoutes: <UserType extends AuthHtmxUser>(confi
|
|
|
454
454
|
query: unknown;
|
|
455
455
|
headers: unknown;
|
|
456
456
|
response: {
|
|
457
|
-
200: {} | Response;
|
|
458
457
|
400: "Cookies are missing";
|
|
459
458
|
401: "User is not authenticated";
|
|
459
|
+
200: {} | Response;
|
|
460
460
|
422: {
|
|
461
461
|
type: "validation";
|
|
462
462
|
on: string;
|