未验证 提交 8b1b9012 编写于 作者: O openharmony_ci 提交者: Gitee

!22644 【帐号iam】添加凭据接口错误码返回变更changelog

Merge pull request !22644 from lichenchen/0821_r
......@@ -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
**适配指导**
根据错误码变更场景进行排查适配。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册