@puca/puca-core 15.1.5 → 15.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,7 +8,7 @@ import { ConfigService } from '../../essential/config.service';
|
|
|
8
8
|
import { EnvConfigService } from '../../essential/envs-config.service';
|
|
9
9
|
import { CacheServiceV2 } from '../../orm/services/cache-service-v2';
|
|
10
10
|
import { UserService } from './user.service';
|
|
11
|
-
export declare const LOGIN_ID_RACE_WINDOW_SECONDS =
|
|
11
|
+
export declare const LOGIN_ID_RACE_WINDOW_SECONDS = 5;
|
|
12
12
|
export declare function getArtificialLoginIdCacheDelayMs(): number;
|
|
13
13
|
type LoginIdField = 'login_id' | 'login_id_mobile' | 'login_id_mcp';
|
|
14
14
|
export declare const getLoginIdFieldForDevice: (device: Device) => LoginIdField;
|
|
@@ -8,7 +8,7 @@ const crypto_1 = require("crypto");
|
|
|
8
8
|
const logger_1 = require("./logger");
|
|
9
9
|
const interfaces_1 = require("../../orm/interfaces");
|
|
10
10
|
const services_1 = require("../../orm/services");
|
|
11
|
-
exports.LOGIN_ID_RACE_WINDOW_SECONDS =
|
|
11
|
+
exports.LOGIN_ID_RACE_WINDOW_SECONDS = 5;
|
|
12
12
|
function getArtificialLoginIdCacheDelayMs() {
|
|
13
13
|
if ((process.env.ENVIRONMENT || '').toUpperCase() === 'PRODUCTION') {
|
|
14
14
|
return 0;
|