diff --git a/services/implementation/src/authentication_v2/dm_auth_state.cpp b/services/implementation/src/authentication_v2/dm_auth_state.cpp index 7ab8d7a8cda4cca04c3270a42e9d0aef58bf54ed..6082dbb593b361bea8e64b78ff4a4e295d308f79 100644 --- a/services/implementation/src/authentication_v2/dm_auth_state.cpp +++ b/services/implementation/src/authentication_v2/dm_auth_state.cpp @@ -81,7 +81,7 @@ const std::map NEW_AND_OLD_REPLAY_MAPPING = { int32_t DmAuthState::GetTaskTimeout(std::shared_ptr context, const char* taskName, int32_t taskTimeOut) { LOGI("GetTaskTimeout, taskName: %{public}s, authType_: %{public}d", taskName, context->authType); - if (DmAuthState::IsImportAuthCodeCompatibility(context->authType)) { + if (context->authType == DmAuthType::AUTH_TYPE_IMPORT_AUTH_CODE) { auto timeout = TASK_TIME_OUT_MAP.find(std::string(taskName)); if (timeout != TASK_TIME_OUT_MAP.end()) { return timeout->second;