@fairmint/canton-node-sdk
Version:
Canton Node SDK
21 lines • 635 B
TypeScript
import { AuthConfig } from '../types';
export interface AuthResponse {
access_token: string;
token_type?: string;
expires_in?: number;
scope?: string;
}
/** Manages OAuth2 authentication and token lifecycle */
export declare class AuthenticationManager {
private authUrl;
private authConfig;
private bearerToken;
private tokenExpiry;
constructor(authUrl: string, authConfig: AuthConfig);
authenticate(): Promise<string>;
getBearerToken(): Promise<string>;
clearToken(): void;
private validateAuthConfig;
private isTokenValid;
}
//# sourceMappingURL=AuthenticationManager.d.ts.map