diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.10.1/changelogs-account_os_account.md b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.10.1/changelogs-account_os_account.md index 157e9a3ea148d641963092a80a926a5786801f3b..d863b4f9660e6338b3f23d6d49895be57e8b13f6 100644 --- a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.10.1/changelogs-account_os_account.md +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.10.1/changelogs-account_os_account.md @@ -53,4 +53,46 @@ interface/sdk-js/api/@ohos.account.appAccount.AuthorizationExtensionAbility.d.ts **适配指导** -该接口删除后无法再使用,请同步删除相应功能。 \ No newline at end of file +该接口删除后无法再使用,请同步删除相应功能。 + + +## cl.account_os_account.2 系统帐号添加凭据接口错误码变更 + +**变更影响** + +基于此前版本开发的应用,需要重新适配旧错误码场景的分支判断。 + +**关键接口/组件变更** + +涉及接口: + +```js + class UserIdentityManager { + ... + addCredential(credentialInfo: CredentialInfo, callback: IIdmCallback): void; + ... + } +``` + +错误码列表: +| 错误码ID | 错误信息 | +| -------- | ------------------- | +| 12300001 | System service exception. | +| 12300002 | Invalid credentialInfo, i.e. authType or authSubType. | +| 12300101 | Token is invalid. | +| 12300106 | Unsupported authType. | +| 12300109 | Operation is canceled. | +| 12300111 | Operation timeout. | +| 12300115 | The number of credentials reaches the upper limit. | + + +变更前: +会话超时异常场景对应的错误码返回为12300002 + +变更后: +会话超时异常场景对应的错误码返回为12300001 + + +**适配指导** + +根据错误码变更场景进行排查适配。