@authing/guard-shim-react18 4.5.20-adsy.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.
@@ -8,6 +8,7 @@ export interface CheckPushCodeStatusProps {
8
8
  }
9
9
  export interface OnLoginProps {
10
10
  account: string;
11
+ agreementIds?: (string | number)[];
11
12
  }
12
13
  export declare type LoginStatus = 'before' | 'pending';
13
14
  export interface LoginWithAuthingOtpPushProps {
@@ -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;
@@ -3,7 +3,7 @@ import './style.less';
3
3
  import { Agreement } from '../../../Type/application';
4
4
  export interface AgreementsProps {
5
5
  value?: boolean;
6
- onChange?: (value: boolean) => void;
6
+ onChange?: (value: boolean, acceptList: (string | number)[]) => void;
7
7
  style?: React.CSSProperties;
8
8
  agreements: Agreement[];
9
9
  showError?: boolean;
@@ -16,6 +16,7 @@ export declare const isAlipayBrowser: () => boolean | null;
16
16
  export declare const isBaiduBrowser: () => boolean | null;
17
17
  export declare const isWeComeBrowser: () => boolean;
18
18
  export declare const isMobile: () => RegExpMatchArray | null;
19
- export declare const isWebview: () => RegExpMatchArray | null;
19
+ export declare const isWebview: () => boolean | null;
20
+ export declare const isLenovoNetdisk: () => boolean | null;
20
21
  export declare const isSpecialBrowser: () => boolean;
21
22
  export declare const getPhoneInLoginPageContext: () => any;
@@ -6,4 +6,5 @@ export interface InitGuardI18nOptions {
6
6
  }
7
7
  export declare const fallbackLng: (code?: string) => string[];
8
8
  export declare const initGuardI18n: (options: InitGuardI18nOptions, callback: React.Dispatch<React.SetStateAction<boolean>>) => Promise<void>;
9
+ export declare const resolvedLanguage: string;
9
10
  export { i18n };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react18",
3
- "version": "4.5.20-adsy.0",
3
+ "version": "4.5.20-nington.13",
4
4
  "description": "Guard shim for react 18, only be used to internal",
5
5
  "types": "dist/typings/src/index.d.ts",
6
6
  "module": "dist/guard.min.js",