@coherenceplatform/sdk
Version:
Coherence SDK for embedding AI-powered chat into your applications
26 lines • 697 B
TypeScript
/**
* Base authentication provider class that defines the common interface
* for all authentication strategies used by the Coherence SDK.
*/
export class BaseAuthProvider {
constructor(config: any);
config: any;
coherenceToken: any;
tokenExpiry: number;
isInitialized: boolean;
/**
* Initialize the authentication provider
* @abstract
*/
initialize(): Promise<void>;
isTokenValid(): boolean;
getValidToken(): Promise<any>;
/**
* Refresh the authentication token
* @abstract
*/
refreshToken(): Promise<void>;
setToken(token: any, expiresIn?: number): void;
clearToken(): void;
}
//# sourceMappingURL=base.d.ts.map