@timesheet/sdk
Version:
Official TypeScript SDK for the Timesheet API
13 lines • 483 B
TypeScript
import type { AxiosRequestConfig } from 'axios';
import type { Authentication } from './Authentication';
export declare class ApiKeyAuth implements Authentication {
private readonly apiKey;
constructor(apiKey: string);
private isValidFormat;
applyAuth(config: AxiosRequestConfig): void;
needsRefresh(): boolean;
refresh(): Promise<void>;
getAuthHeaders(): Promise<Record<string, string>>;
isValid(): boolean;
}
//# sourceMappingURL=ApiKeyAuth.d.ts.map