@byomakase/omakase-player
Version:
## Omakase Player - Open source JavaScript framework for building frame accurate video experiences
26 lines (25 loc) • 858 B
TypeScript
import { AxiosRequestConfig } from 'axios';
export interface BasicAuthenticationData {
type: 'basic';
username: string;
password: string;
}
export interface BearerAuthenticationData {
type: 'bearer';
token: string;
}
export interface CustomAuthenticationData {
type: 'custom';
headers: (url: string) => {
headers: {
[header: string]: string;
};
};
}
export type AuthenticationData = BasicAuthenticationData | BearerAuthenticationData | CustomAuthenticationData;
export declare class AuthConfig {
static _authentication?: AuthenticationData;
static set authentication(authentication: AuthenticationData | undefined);
static get authentication(): AuthenticationData | undefined;
static createAxiosRequestConfig(url: string, authentication?: AuthenticationData): AxiosRequestConfig;
}