From a0f3636f115e0447a2f7342ce18fd6ac891da1ab Mon Sep 17 00:00:00 2001 From: "https://gitee.com/WALL_EYE" Date: Wed, 9 Mar 2022 11:30:10 +0800 Subject: [PATCH] fix AuthType Signed-off-by: https://gitee.com/WALL_EYE Change-Id: I7442b988eda66219fad2fface617e552d7142361 --- api/@ohos.userIAM.userAuth.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/@ohos.userIAM.userAuth.d.ts b/api/@ohos.userIAM.userAuth.d.ts index 8a6e196087..2366aa5f1f 100644 --- a/api/@ohos.userIAM.userAuth.d.ts +++ b/api/@ohos.userIAM.userAuth.d.ts @@ -92,6 +92,7 @@ declare namespace userAuth { /** * Auth types + * @deprecated since 8 */ type AuthType = "ALL" | "FACE_ONLY"; @@ -152,7 +153,7 @@ declare namespace userAuth { * @param authTrustLevel Trust level of authentication result. * @return Returns a check result, which is specified by getAvailableStatus. */ - getAvailableStatus(authType : AuthType, authTrustLevel : AuthTrustLevel) : number; + getAvailableStatus(authType : UserAuthType, authTrustLevel : AuthTrustLevel) : number; /** * Executes authentication. @@ -165,7 +166,7 @@ declare namespace userAuth { * @param callback Return result and acquireinfo through callback. * @return Returns ContextId for cancel. */ - auth(challenge: Uint8Array, authType: AuthType, authTrustLevel: AuthTrustLevel, callback: IUserAuthCallback): Uint8Array; + auth(challenge: Uint8Array, authType: UserAuthType, authTrustLevel: AuthTrustLevel, callback: IUserAuthCallback): Uint8Array; /** * Cancels authentication with ContextID. -- Gitee