@authing/guard-shim-react 4.5.20-alpha.0 → 4.5.20-nington.13
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/guard.min.js +2014 -2014
- package/dist/typings/src/Login/hooks/useLoginMultiple.d.ts +1 -1
- package/dist/typings/src/Login/socialLogin/postMessage.d.ts +7 -3
- package/dist/typings/src/MFA/businessRequest.d.ts +7 -0
- package/dist/typings/src/MFA/core/nington.d.ts +19 -0
- package/dist/typings/src/MFA/interface.d.ts +3 -1
- package/dist/typings/src/_utils/config/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -58,7 +58,7 @@ declare function useLoginMultiple(setLoginWay: React.Dispatch<any>): {
|
|
|
58
58
|
getOriginAccount: () => string;
|
|
59
59
|
getOriginWay: () => string;
|
|
60
60
|
} | undefined;
|
|
61
|
-
referMultipleState: ((type: "
|
|
61
|
+
referMultipleState: ((type: "login" | "multiple") => void) | undefined;
|
|
62
62
|
backfillData: BackFillMultipleState | undefined;
|
|
63
63
|
defaultQrWay: string | undefined;
|
|
64
64
|
};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const usePostMessage: () => (evt: MessageEvent) => AuthingGuardResponse |
|
|
3
|
-
|
|
1
|
+
import { AuthingResponse } from '../../_utils/http';
|
|
2
|
+
export declare const usePostMessage: () => (evt: MessageEvent) => import("../../_utils/http").AuthingGuardResponse<any> | {
|
|
3
|
+
code: any;
|
|
4
|
+
data: any;
|
|
5
|
+
onGuardHandling: undefined;
|
|
6
|
+
} | undefined;
|
|
7
|
+
export declare const useErrorHandling: () => (res: AuthingResponse) => import("../../_utils/http").AuthingGuardResponse<any>;
|
|
@@ -4,6 +4,7 @@ export declare enum MfaBusinessAction {
|
|
|
4
4
|
VerifyEmail = "verify-email",
|
|
5
5
|
VerifySms = "verify-sms",
|
|
6
6
|
VerifyTotp = "verify-totp",
|
|
7
|
+
VerifyNington = "verify-nington",
|
|
7
8
|
VerifyFace = "verify-face",
|
|
8
9
|
AssociateFace = "associate-face",
|
|
9
10
|
PasskeyBind = "passkey-bind",
|
|
@@ -25,6 +26,10 @@ interface VerifyTotpContent {
|
|
|
25
26
|
totp: string;
|
|
26
27
|
mfaToken?: string;
|
|
27
28
|
}
|
|
29
|
+
interface VerifyNingtonContent {
|
|
30
|
+
totp: string;
|
|
31
|
+
mfaToken?: string;
|
|
32
|
+
}
|
|
28
33
|
interface VerifyFaceContent {
|
|
29
34
|
photo: string;
|
|
30
35
|
mfaToken?: string;
|
|
@@ -49,6 +54,7 @@ interface GetPasskeyVerifyChallengeParams {
|
|
|
49
54
|
export declare const VerifyEmail: (content: VerifyEmailContent) => Promise<AuthingGuardResponse<any>>;
|
|
50
55
|
export declare const VerifySms: (content: VerifySmsContent) => Promise<AuthingGuardResponse<any>>;
|
|
51
56
|
export declare const VerifyTotp: (content: VerifyTotpContent) => Promise<AuthingGuardResponse<any>>;
|
|
57
|
+
export declare const VerifyNington: (content: VerifyNingtonContent) => Promise<AuthingGuardResponse<any>>;
|
|
52
58
|
export declare const VerifyFace: (content: VerifyFaceContent) => Promise<AuthingGuardResponse<any>>;
|
|
53
59
|
export declare const AssociateFace: (content: AssociateFaceContent) => Promise<AuthingGuardResponse<any>>;
|
|
54
60
|
export declare const GetPasskeyBindChallenge: (content: GetPasskeyBindChallengeParams) => Promise<AuthingGuardResponse<CredentialCreationOptionsJSON>>;
|
|
@@ -63,5 +69,6 @@ export declare const useMfaBusinessRequest: () => {
|
|
|
63
69
|
"associate-face": (content: AssociateFaceContent) => Promise<AuthingGuardResponse<any>>;
|
|
64
70
|
"passkey-bind": (content: BindPasskeyContent) => Promise<AuthingGuardResponse<any>> | null;
|
|
65
71
|
"passkey-verify": (content: VerifyPasskeyContent) => Promise<AuthingGuardResponse<any>> | null;
|
|
72
|
+
"verify-nington": (content: VerifyNingtonContent) => Promise<AuthingGuardResponse<any>>;
|
|
66
73
|
};
|
|
67
74
|
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { React } from 'shim-react';
|
|
2
|
+
import { GuardMFAInitData, MFAConfig } from '../interface';
|
|
3
|
+
export interface BindNingtonMFATotpProps {
|
|
4
|
+
initData: GuardMFAInitData;
|
|
5
|
+
changeModule: any;
|
|
6
|
+
}
|
|
7
|
+
export declare const BindNingtonMFATotp: React.FC<BindNingtonMFATotpProps>;
|
|
8
|
+
export interface VerifyNingtonMFATotpProps {
|
|
9
|
+
mfaToken: string;
|
|
10
|
+
mfaLogin: any;
|
|
11
|
+
}
|
|
12
|
+
export declare const VerifyNingtonMFATotp: React.FC<VerifyNingtonMFATotpProps>;
|
|
13
|
+
export interface NingtonMFATotpProps {
|
|
14
|
+
changeModule: any;
|
|
15
|
+
config: MFAConfig;
|
|
16
|
+
initData: GuardMFAInitData;
|
|
17
|
+
mfaLogin: any;
|
|
18
|
+
}
|
|
19
|
+
export declare const NingtonMFATotp: React.FC<NingtonMFATotpProps>;
|
|
@@ -12,7 +12,8 @@ export declare enum MFAType {
|
|
|
12
12
|
EMAIL = "EMAIL",
|
|
13
13
|
TOTP = "OTP",
|
|
14
14
|
FACE = "FACE",
|
|
15
|
-
PASSKEY = "PASSKEY"
|
|
15
|
+
PASSKEY = "PASSKEY",
|
|
16
|
+
NINGTON = "NINGTON"
|
|
16
17
|
}
|
|
17
18
|
export interface GuardMFAInitData {
|
|
18
19
|
mfaToken: string;
|
|
@@ -24,6 +25,7 @@ export interface GuardMFAInitData {
|
|
|
24
25
|
phoneCountryCode?: string;
|
|
25
26
|
faceMfaEnabled: boolean;
|
|
26
27
|
totpMfaEnabled: boolean;
|
|
28
|
+
ningTonMfaEnable: boolean;
|
|
27
29
|
email?: string;
|
|
28
30
|
phone?: string;
|
|
29
31
|
avatar?: string;
|
|
@@ -53,7 +53,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
|
|
|
53
53
|
loginMethods?: LoginMethods[] | undefined;
|
|
54
54
|
passwordLoginMethods?: string[] | undefined;
|
|
55
55
|
socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
|
|
56
|
-
socialConnectionsBtnShape?: "button" | "
|
|
56
|
+
socialConnectionsBtnShape?: "button" | "default" | "icon" | undefined;
|
|
57
57
|
enterpriseConnections?: string[] | undefined;
|
|
58
58
|
qrCodeScanOptions?: {
|
|
59
59
|
extIdpConnId?: string | undefined;
|
package/package.json
CHANGED