@absolutejs/auth 0.58.0 → 0.59.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/README.md +9 -4
- package/dist/cli/migrate.js +18 -12
- package/dist/cli/migrate.js.map +4 -4
- package/dist/index.d.ts +6 -6
- package/dist/index.js +353 -123
- package/dist/index.js.map +14 -13
- package/dist/mfa/challenge.d.ts +1 -1
- package/dist/mfa/config.d.ts +3 -0
- package/dist/mfa/management.d.ts +3 -3
- package/dist/mfa/postgresMfaStore.d.ts +15 -0
- package/dist/mfa/recentAuth.d.ts +2 -0
- package/dist/mfa/routes.d.ts +6 -6
- package/dist/mfa/sms.d.ts +9 -4
- package/dist/mfa/totp.d.ts +3 -3
- package/dist/mfa/types.d.ts +31 -0
- package/dist/server.js +352 -123
- package/dist/server.js.map +14 -13
- package/dist/verification/types.d.ts +13 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -937,7 +937,7 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
|
|
|
937
937
|
query: unknown;
|
|
938
938
|
headers: unknown;
|
|
939
939
|
response: {
|
|
940
|
-
401: "Authentication required";
|
|
940
|
+
401: "Recent authentication required" | "Authentication required";
|
|
941
941
|
200: {
|
|
942
942
|
readonly status: "disabled";
|
|
943
943
|
};
|
|
@@ -961,7 +961,7 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
|
|
|
961
961
|
query: unknown;
|
|
962
962
|
headers: unknown;
|
|
963
963
|
response: {
|
|
964
|
-
401: "Authentication required";
|
|
964
|
+
401: "Recent authentication required" | "Authentication required";
|
|
965
965
|
200: {
|
|
966
966
|
readonly secret: string;
|
|
967
967
|
readonly uri: string;
|
|
@@ -989,7 +989,7 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
|
|
|
989
989
|
headers: unknown;
|
|
990
990
|
response: {
|
|
991
991
|
400: "No TOTP enrollment in progress" | "Invalid TOTP code";
|
|
992
|
-
401: "Authentication required";
|
|
992
|
+
401: "Recent authentication required" | "Authentication required";
|
|
993
993
|
200: {
|
|
994
994
|
readonly backupCodes: string[];
|
|
995
995
|
};
|
|
@@ -1016,7 +1016,7 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
|
|
|
1016
1016
|
headers: unknown;
|
|
1017
1017
|
response: {
|
|
1018
1018
|
400: string;
|
|
1019
|
-
401: "Authentication required";
|
|
1019
|
+
401: "Recent authentication required" | "Authentication required";
|
|
1020
1020
|
501: "SMS MFA is not configured";
|
|
1021
1021
|
200: {
|
|
1022
1022
|
readonly phone: string;
|
|
@@ -1046,7 +1046,7 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
|
|
|
1046
1046
|
headers: unknown;
|
|
1047
1047
|
response: {
|
|
1048
1048
|
400: string;
|
|
1049
|
-
401: "Authentication required";
|
|
1049
|
+
401: "Recent authentication required" | "Authentication required";
|
|
1050
1050
|
200: {
|
|
1051
1051
|
readonly status: "enrolled";
|
|
1052
1052
|
};
|
|
@@ -1077,7 +1077,7 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
|
|
|
1077
1077
|
headers: unknown;
|
|
1078
1078
|
response: {
|
|
1079
1079
|
400: string;
|
|
1080
|
-
401: "SMS code expired" | "Too many attempts" | "No MFA challenge in progress" | "Invalid MFA code";
|
|
1080
|
+
401: "SMS code expired" | "Too many attempts" | "SMS challenge is no longer active" | "No MFA challenge in progress" | "Invalid MFA code";
|
|
1081
1081
|
200: {
|
|
1082
1082
|
readonly status: "sent";
|
|
1083
1083
|
} | {
|