From fc456d6de99ab9d7efdca81229423ccadf55f2b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=9C=9C?= Date: Fri, 13 Jun 2025 17:15:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=98=AF=E5=90=A6=E6=9C=89?= =?UTF-8?q?=E5=8F=AF=E5=A4=8D=E7=94=A8=E7=9A=84=E8=BA=AB=E4=BB=BD=E8=AE=A4?= =?UTF-8?q?=E8=AF=81=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李蜜 --- api/@ohos.userIAM.userAuth.d.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/api/@ohos.userIAM.userAuth.d.ts b/api/@ohos.userIAM.userAuth.d.ts index 015bd1c5e3..62faf9ac63 100644 --- a/api/@ohos.userIAM.userAuth.d.ts +++ b/api/@ohos.userIAM.userAuth.d.ts @@ -2093,6 +2093,27 @@ declare namespace userAuth { */ sendCommand(cmdData: string): void; } + + /** + * Obtains the reusable authentication result. + * + * @permission ohos.permission.ACCESS_USER_AUTH_INTERNAL_PERMISSION + * @param { AuthParam } authParam - Auth parameter. + * @returns { Uint8Array } The reuse authentication token. + * @throws { BusinessError } 201 - Permission verification failed. + * @throws { BusinessError } 202 - Not system application. + * @throws { BusinessError } 401 - Incorrect parameters. Possible causes: + *
1. Mandatory parameters are left unspecified. + *
2. Incorrect parameter types. + *
3. Parameter verification failed. + * @throws { BusinessError } 12500002 - General operation error. + * @throws { BusinessError } 12500004 - The operation is time-out. + * @throws { BusinessError } 12500015 - AuthToken integrity check failed. + * @syscap SystemCapability.UserIAM.UserAuth.Core + * @systemapi Hide this for inner system use. + * @since 20 + */ + function queryReusableAuthResult(authParam: AuthParam): Uint8Array; } export default userAuth; -- Gitee