Skip to content

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

Interface: PreAuthServiceConfig

Pre-auth authentication configuration

Table of contents

Properties

Properties

type

type: "pre-auth"

Defined in

core/auth/AuthenticationService.ts:48


accessToken

accessToken: string

Access token to use directly

Defined in

core/auth/AuthenticationService.ts:52


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:57

Released under the MIT License.