Files
inji-wallet/shared/InitialConfig.ts
Sairam Girirao 720e7d907b Injimob 3186 - Added TTL to the cache (#1947)
* [INJIMOB-3186]:Added ttl to the cache

Signed-off-by: sairam-g9162 <sairamgirirao@gmail.com>

* [INJIMOB-3186]: Added TTL to cache

Signed-off-by: sairam-g9162 <sairamgirirao@gmail.com>

* [INJIMOB-3186]-Add TTL to cache

Signed-off-by: sairam-g9162 <sairamgirirao@gmail.com>

* INJIMOB-3186 Added TTL to cache with dynamic update from config

Signed-off-by: Sairam Girirao <sairamgirirao@gmail.com>

* [INJIMOB-3186]: Resolved review comments for card INJIMOB-3186

Signed-off-by: Sairam Girirao <sairamgirirao@gmail.com>

---------

Signed-off-by: sairam-g9162 <sairamgirirao@gmail.com>
Signed-off-by: Sairam Girirao <sairamgirirao@gmail.com>
2025-06-18 12:22:02 +05:30

24 lines
1000 B
TypeScript

// Initial configs used by app if network is not available when app is opened for first time. once network is available response is cached and used from then
// Note: Need to keep this config in sync with actual mimoto response.
export const INITIAL_CONFIG = {
// These properties are stored in mosip-config github repo / inji-default.properties
allProperties: {
modelDownloadMaxRetry: '10',
audience: 'ida-binding',
allowedInternalAuthType: 'otp,bio-Finger,bio-Iris,bio-Face',
vcDownloadMaxRetry: '10',
minStorageRequiredForAuditEntry: '2',
minStorageRequired: '2',
vcDownloadPoolInterval: '6000',
issuer: 'residentapp',
allowedAuthType: 'demo,otp,bio-Finger,bio-Iris,bio-Face',
allowedEkycAuthType: 'demo,otp,bio-Finger,bio-Iris,bio-Face',
warningDomainName: '',
aboutInjiUrl: 'https://docs.mosip.io/inji/inji-wallet/inji-mobile',
faceSdkModelUrl: '',
openId4VCIDownloadVCTimeout: '30000',
cacheTTLInMilliSeconds: '3600000',
},
};