sleeper-api-tsclient
Version:
Typescript client for the sleeper api
21 lines (20 loc) • 748 B
TypeScript
import { RequestContext } from "../http/http";
export interface SecurityAuthentication {
getName(): string;
applySecurityAuthentication(context: RequestContext): void | Promise<void>;
}
export interface TokenProvider {
getToken(): Promise<string> | string;
}
export declare type AuthMethods = {};
export declare type ApiKeyConfiguration = string;
export declare type HttpBasicConfiguration = {
"username": string;
"password": string;
};
export declare type HttpBearerConfiguration = {
tokenProvider: TokenProvider;
};
export declare type OAuth2Configuration = string;
export declare type AuthMethodsConfiguration = {};
export declare function configureAuthMethods(config: AuthMethodsConfiguration | undefined): AuthMethods;