1# Account Subsystem Changelog 2 3## cl.account_os_account.1 Deletion of App Account Authorization Interfaces 4 5**Change Impact** 6 7Apps developed based on earlier versions cannot use the account authorization capability. 8 9**Key API/Component Changes** 10 11Involved interfaces: 12 13interface/sdk-js/api/@ohos.account.appAccount.d.ts: 14 15```js 16 enum AccountCapabilityType 17``` 18```js 19 class AccountCapabilityProvider 20``` 21```js 22 class AuthorizationProvider extends AccountCapabilityProvider 23``` 24```js 25 interface AuthorizationProviderInfo 26``` 27```js 28 class AccountCapabilityRequest 29``` 30```js 31 class AccountCapabilityResponse 32``` 33```js 34 class AccountCapabilityScheduler 35``` 36 37interface/sdk-js/api/@ohos.account.appAccount.AuthorizationExtensionAbility.d.ts: 38 39```js 40 export default class AuthorizationExtensionAbility extends ExtensionAbility 41``` 42```js 43 declare interface AuthorizationRequest 44``` 45```js 46 declare interface AuthorizationCallback 47``` 48 49 50After change: 51 52All the involved interfaces are deleted. 53 54**Adaptation Guide** 55 56The deleted interfaces cannot be used any longer. 57 58 59## cl.account_os_account.2 Change of the Error Codes in addCredential() 60 61**Change Impact** 62 63For the applications developed based on earlier versions, you need to change the error code processing logic. 64 65**Key API/Component Changes** 66 67Involved API: 68 69```js 70 class UserIdentityManager { 71 ... 72 addCredential(credentialInfo: CredentialInfo, callback: IIdmCallback): void; 73 ... 74 } 75``` 76 77Error code list: 78| ID| Error Message | 79| -------- | ------------------- | 80| 12300001 | System service exception. | 81| 12300002 | Invalid credentialInfo, i.e. authType or authSubType. | 82| 12300101 | Token is invalid. | 83| 12300106 | Unsupported authType. | 84| 12300109 | Operation is canceled. | 85| 12300111 | Operation timeout. | 86| 12300115 | The number of credentials reaches the upper limit. | 87 88 89Before change: 90The error code 12300002 is returned when a session times out. 91 92After change: 93The error code 12300001 is returned when a session times out. 94 95 96**Adaptation Guide** 97 98Modify the error code processing logic based on the new error codes. 99