Skip to content

@egain/ai-agent-sdk API Reference - v0.3.2 / PreAuthServiceConfig

Interface: PreAuthServiceConfig ​

Pre-auth authentication configuration

Table of contents ​

Properties ​

Properties ​

type ​

• type: "pre-auth"

Defined in ​

core/auth/AuthenticationService.ts:49


accessToken ​

• accessToken: string

Access token to use directly

Defined in ​

core/auth/AuthenticationService.ts:53


refreshTokenFn ​

• Optional refreshTokenFn: () => Promise<string>

Optional token refresh function If provided, will be called when token needs to be refreshed

Type declaration ​

▸ (): Promise<string>

Returns ​

Promise<string>

Defined in ​

core/auth/AuthenticationService.ts:58

Released under the MIT License.