Skip to content

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

Interface: TokenRefreshHandlerOptions ​

Options for TokenRefreshHandler

Table of contents ​

Properties ​

Properties ​

getAccessToken ​

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

Function to get a new access token

Type declaration ​

▸ (): Promise<string>

Returns ​

Promise<string>

Defined in ​

core/message/handlers/TokenRefreshHandler.ts:14


sendToConnection ​

• Optional sendToConnection: (payload: any) => void | Promise<void>

Function to send a message to the connection

Type declaration ​

▸ (payload): void | Promise<void>

Parameters ​
NameTypeDescription
payloadanyThe message payload to send
Returns ​

void | Promise<void>

Defined in ​

core/message/handlers/TokenRefreshHandler.ts:20

Released under the MIT License.