diff --git a/runtime/main/extend/systemplugin/napi/ohos_account_osAccount.js b/runtime/main/extend/systemplugin/napi/ohos_account_osAccount.js index d3ddfaae..ed394b24 100644 --- a/runtime/main/extend/systemplugin/napi/ohos_account_osAccount.js +++ b/runtime/main/extend/systemplugin/napi/ohos_account_osAccount.js @@ -721,14 +721,27 @@ export function mockOsAccount() { getAccountManager: function (...args) { console.warn("osAccount.getAccountManager interface mocked in the Previewer. " + "How this interface works on the Previewer may be different from that on a real device.") - return accountManagerMock; + return AccountManagerMock; }, OsAccountType: { ADMIN: "[PC Preview] unknown ADMIN", NORMAL: "[PC Preview] unknown NORMAL", GUEST: "[PC Preview] unknown GUEST" }, + UserAuth: UserAuthClass, + PINAuth: PINAuthClass, + UserIdentityManager: UserIdentityManagerClass, ConstraintSourceType, + OsAccountType, + FingerprintTips, + FaceTipsCode, + ResultCode, + Module, + AuthTrustLevel, + AuthSubType, + GetPropertyType, + SetPropertyType, + AuthType, } return osAccount }