diff --git a/api/@ohos.userIAM.userAuth.d.ts b/api/@ohos.userIAM.userAuth.d.ts index 8a6e1960872a739c276814c3d63ce2a4010934b2..2366aa5f1f57a3ddeecdd0c50aa16c00fa9abcf2 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.