@authing/guard-shim-react
Advanced tools
Comparing version 4.5.14-alpha.3 to 4.5.14
@@ -56,3 +56,3 @@ import { React } from 'shim-react'; | ||
socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined; | ||
socialConnectionsBtnShape?: "button" | "icon" | "default" | undefined; | ||
socialConnectionsBtnShape?: "button" | "default" | "icon" | undefined; | ||
enterpriseConnections?: string[] | undefined; | ||
@@ -59,0 +59,0 @@ qrCodeScanOptions?: { |
@@ -28,7 +28,3 @@ export declare enum GuardModuleType { | ||
SELECT_ACCOUNT_2_LOGIN = "selectAccout2Login", | ||
RESET_ACCOUNT_NAME = "resetAccountName", | ||
APPLY_INVITATION = "applyInvitation", | ||
MESSAGE = "message", | ||
INVITE_AUTH = "inviteAuth", | ||
INVITE_COMPLETE = "inviteComplete" | ||
RESET_ACCOUNT_NAME = "resetAccountName" | ||
} | ||
@@ -35,0 +31,0 @@ export interface GuardModuleAction { |
@@ -61,3 +61,3 @@ import { FormInstance } from 'shim-antd/lib/form'; | ||
} | undefined; | ||
referMultipleState: ((type: "multiple" | "login") => void) | undefined; | ||
referMultipleState: ((type: "login" | "multiple") => void) | undefined; | ||
backfillData: BackFillMultipleState | undefined; | ||
@@ -64,0 +64,0 @@ defaultQrWay: string | undefined; |
@@ -0,1 +1,3 @@ | ||
import { CredentialCreationOptionsJSON, CredentialRequestOptionsJSON, PublicKeyCredentialWithAssertionJSON, PublicKeyCredentialWithAttestationJSON } from '@github/webauthn-json'; | ||
import { AuthingGuardResponse } from '../_utils/http'; | ||
export declare enum MfaBusinessAction { | ||
@@ -6,5 +8,7 @@ VerifyEmail = "verify-email", | ||
VerifyFace = "verify-face", | ||
AssociateFace = "associate-face" | ||
AssociateFace = "associate-face", | ||
PasskeyBind = "passkey-bind", | ||
PasskeyVerify = "passkey-verify" | ||
} | ||
export declare const authFlow: (action: MfaBusinessAction, content: any) => Promise<import("../_utils/http").AuthingGuardResponse<any>>; | ||
export declare const authFlow: (action: MfaBusinessAction, content: any) => Promise<AuthingGuardResponse<any>>; | ||
interface VerifySmsContent { | ||
@@ -35,14 +39,31 @@ phone: string; | ||
} | ||
export declare const VerifyEmail: (content: VerifyEmailContent) => Promise<import("../_utils/http").AuthingGuardResponse<any>>; | ||
export declare const VerifySms: (content: VerifySmsContent) => Promise<import("../_utils/http").AuthingGuardResponse<any>>; | ||
export declare const VerifyTotp: (content: VerifyTotpContent) => Promise<import("../_utils/http").AuthingGuardResponse<any>>; | ||
export declare const VerifyFace: (content: VerifyFaceContent) => Promise<import("../_utils/http").AuthingGuardResponse<any>>; | ||
export declare const AssociateFace: (content: AssociateFaceContent) => Promise<import("../_utils/http").AuthingGuardResponse<any>>; | ||
declare type BindPasskeyContent = PublicKeyCredentialWithAttestationJSON; | ||
interface VerifyPasskeyContent { | ||
credential: PublicKeyCredentialWithAssertionJSON; | ||
ticket: string; | ||
} | ||
interface GetPasskeyBindChallengeParams { | ||
mfaToken: string; | ||
} | ||
interface GetPasskeyVerifyChallengeParams { | ||
mfaToken: string; | ||
} | ||
export declare const VerifyEmail: (content: VerifyEmailContent) => Promise<AuthingGuardResponse<any>>; | ||
export declare const VerifySms: (content: VerifySmsContent) => Promise<AuthingGuardResponse<any>>; | ||
export declare const VerifyTotp: (content: VerifyTotpContent) => Promise<AuthingGuardResponse<any>>; | ||
export declare const VerifyFace: (content: VerifyFaceContent) => Promise<AuthingGuardResponse<any>>; | ||
export declare const AssociateFace: (content: AssociateFaceContent) => Promise<AuthingGuardResponse<any>>; | ||
export declare const GetPasskeyBindChallenge: (content: GetPasskeyBindChallengeParams) => Promise<AuthingGuardResponse<CredentialCreationOptionsJSON>>; | ||
export declare const GetPasskeyVerifyChallenge: (content: GetPasskeyVerifyChallengeParams) => Promise<AuthingGuardResponse<CredentialRequestOptionsJSON & { | ||
ticket: string; | ||
}>>; | ||
export declare const useMfaBusinessRequest: () => { | ||
"verify-email": (content: VerifyEmailContent) => Promise<import("../_utils/http").AuthingGuardResponse<any>>; | ||
"verify-sms": (content: VerifySmsContent) => Promise<import("../_utils/http").AuthingGuardResponse<any>>; | ||
"verify-totp": (content: VerifyTotpContent) => Promise<import("../_utils/http").AuthingGuardResponse<any>>; | ||
"verify-face": (content: VerifyFaceContent) => Promise<import("../_utils/http").AuthingGuardResponse<any>>; | ||
"associate-face": (content: AssociateFaceContent) => Promise<import("../_utils/http").AuthingGuardResponse<any>>; | ||
"verify-email": (content: VerifyEmailContent) => Promise<AuthingGuardResponse<any>>; | ||
"verify-sms": (content: VerifySmsContent) => Promise<AuthingGuardResponse<any>>; | ||
"verify-totp": (content: VerifyTotpContent) => Promise<AuthingGuardResponse<any>>; | ||
"verify-face": (content: VerifyFaceContent) => Promise<AuthingGuardResponse<any>>; | ||
"associate-face": (content: AssociateFaceContent) => Promise<AuthingGuardResponse<any>>; | ||
"passkey-bind": (content: BindPasskeyContent) => Promise<AuthingGuardResponse<any>> | null; | ||
"passkey-verify": (content: VerifyPasskeyContent) => Promise<AuthingGuardResponse<any>> | null; | ||
}; | ||
export {}; |
@@ -14,3 +14,4 @@ import { IG2Config, IG2Events, IG2FCProps } from '../Type'; | ||
TOTP = "OTP", | ||
FACE = "FACE" | ||
FACE = "FACE", | ||
PASSKEY = "PASSKEY" | ||
} | ||
@@ -17,0 +18,0 @@ export interface GuardMFAInitData { |
@@ -85,4 +85,3 @@ import { React } from 'shim-react'; | ||
EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE", | ||
SELF_UNLOCKING_VERIFY_CODE = "SELF_UNLOCKING_VERIFY_CODE", | ||
VERIFY_CODE = "VERIFY_CODE" | ||
SELF_UNLOCKING_VERIFY_CODE = "SELF_UNLOCKING_VERIFY_CODE" | ||
} |
{ | ||
"name": "@authing/guard-shim-react", | ||
"version": "4.5.14-alpha.3", | ||
"version": "4.5.14", | ||
"description": "Guard shim for react 16 / 17, only be used to internal", | ||
@@ -5,0 +5,0 @@ "types": "dist/typings/src/index.d.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
3044426
216
29726