1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include "napi_account_iam_module.h"
17 
18 #include "account_log_wrapper.h"
19 #include "napi_account_iam_constant.h"
20 #include "napi_account_iam_identity_manager.h"
21 #ifdef HAS_PIN_AUTH_PART
22 #include "napi_account_iam_inputer_manager.h"
23 #include "napi_account_iam_pin_auth.h"
24 #endif
25 #include "napi_account_iam_user_auth.h"
26 
27 namespace OHOS {
28 namespace AccountJsKit {
29 using namespace OHOS::AccountSA;
30 
AccountIAMInit(napi_env env,napi_value exports)31 napi_value AccountIAMInit(napi_env env, napi_value exports)
32 {
33 #ifdef HAS_PIN_AUTH_PART
34     NapiAccountIAMPINAuth::Init(env, exports);
35     NapiAccountIAMInputerManager::Init(env, exports);
36 #endif
37     NapiAccountIAMIdentityManager::Init(env, exports);
38     NapiAccountIAMUserAuth::Init(env, exports);
39     NapiAccountIAMConstant::Init(env, exports);
40     return exports;
41 }
42 }  // namespace AccountJsKit
43 }  // namespace OHOS
44