InitConfig
Configuration interface for initializing an agent.Properties
Custom logger instance. Defaults to
ConsoleLogger with LogLevel.off.Automatically update storage schema when starting agent if needed.
Allow insecure HTTP URLs in places where HTTPS is usually required.Use with caution - only for local development.
Allowed time skew in seconds for validity checks of credentials and signed objects.Useful for mobile devices that may have slightly inaccurate clocks.Currently affects:
- Token Status List
- SD-JWT VC
- W3C VCDM 1.1 and 2.0 with JWT/SD-JWT
- W3C VCDM 1.1 JSON-LD
- mDOC
AgentConfig
The AgentConfig class wraps InitConfig and provides access to configuration values.Properties
logger
Logger instance configured for the agent.Logger
allowInsecureHttpUrls
Whether insecure HTTP URLs are allowed.boolean
autoUpdateStorageOnStartup
Whether to automatically update storage on startup.boolean
validitySkewSeconds
Allowed validity skew in seconds.number
Methods
extend()
Create a new AgentConfig with updated values.config:Partial<InitConfig>- Configuration values to update
AgentConfig