Skip to content

@egain/ai-agent-sdk API Reference - v0.1.1 / AnonymousAuthCacheConfig

Interface: AnonymousAuthCacheConfig

Cache configuration for AnonymousAuthStrategy

Table of contents

Properties

Properties

enabled

Optional enabled: boolean

Whether caching is enabled

Default

ts
true

Defined in

core/auth/AnonymousAuthStrategy.ts:16


storageType

Optional storageType: CacheStorageType

Storage type: 'local' (localStorage), 'session' (sessionStorage), or 'memory'

Default

ts
'session'

Defined in

core/auth/AnonymousAuthStrategy.ts:22


keyPrefix

Optional keyPrefix: string

Prefix for cache keys

Default

ts
'egain_aiagent_auth_metadata_'

Defined in

core/auth/AnonymousAuthStrategy.ts:28


ttl

Optional ttl: number

Time-to-live in milliseconds

Default

ts
300000 (5 minutes)

Defined in

core/auth/AnonymousAuthStrategy.ts:34

Released under the MIT License.