diff --git a/api/@ohos.userIAM.userAuth.d.ts b/api/@ohos.userIAM.userAuth.d.ts index 015bd1c5e39199c2e4509a975c6e6a0869ed30f6..62faf9ac63e9bfabf3e14016590f018d718f6017 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;