harmony 鸿蒙Account Subsystem Changelog
Account Subsystem Changelog
cl.account_os_account.1 Deletion of App Account Authorization Interfaces
Change Impact
Apps developed based on earlier versions cannot use the account authorization capability.
Key API/Component Changes
Involved interfaces:
interface/sdk-js/api/@ohos.account.appAccount.d.ts:
enum AccountCapabilityType
class AccountCapabilityProvider
class AuthorizationProvider extends AccountCapabilityProvider
interface AuthorizationProviderInfo
class AccountCapabilityRequest
class AccountCapabilityResponse
class AccountCapabilityScheduler
interface/sdk-js/api/@ohos.account.appAccount.AuthorizationExtensionAbility.d.ts:
export default class AuthorizationExtensionAbility extends ExtensionAbility
declare interface AuthorizationRequest
declare interface AuthorizationCallback
After change:
All the involved interfaces are deleted.
Adaptation Guide
The deleted interfaces cannot be used any longer.
cl.account_os_account.2 Change of the Error Codes in addCredential()
Change Impact
For the applications developed based on earlier versions, you need to change the error code processing logic.
Key API/Component Changes
Involved API:
class UserIdentityManager {
...
addCredential(credentialInfo: CredentialInfo, callback: IIdmCallback): void;
...
}
Error code list: |ID|Error Message | |——–|——————-| |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.|
Before change: The error code 12300002 is returned when a session times out.
After change: The error code 12300001 is returned when a session times out.
Adaptation Guide
Modify the error code processing logic based on the new error codes.
你可能感兴趣的鸿蒙文章
harmony 鸿蒙ArkUI Subsystem Changelog
harmony 鸿蒙Application Access Control Subsystem Changelog
harmony 鸿蒙Bluetooth Subsystem Changelog
harmony 鸿蒙Bundle Management Subsystem Changelog
harmony 鸿蒙Security Subsystem Changelog
harmony 鸿蒙Graphics Subsystem Changelog
harmony 鸿蒙Input Method Framework Subsystem – Input Method Framework Service Changelog
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦