@egain/ai-agent-sdk API Reference - v0.1.1 / AuthProvider
Interface: AuthProvider
Authentication provider interface Implement this interface to provide custom authentication mechanisms
Hierarchy
AuthProvider
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>