Skip to content

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

Interface: AuthProvider ​

Authentication provider interface Implement this interface to provide custom authentication mechanisms

Hierarchy ​

Table of contents ​

Methods ​

Methods ​

getToken ​

▸ getToken(): Promise<null | string>

Get an authentication token This method may be called multiple times, so implementations should handle token refresh if needed

Returns ​

Promise<null | string>

Defined in ​

core/auth/AuthProvider.ts:11

Released under the MIT License.