@jxstjh/jhvideo
Version:
HTML5 jhvideo base on MPEG2-TS Stream Player
41 lines (40 loc) • 995 B
TypeScript
export declare const STATUS_TYPE: {
LOGIN_SUCCESS: string;
LOGIN_ERROR: string;
};
export interface AuthClientData {
"access_token": string;
"token_type": "bearer" | string;
"refresh_token": string;
"expires_in": number;
"scope": "[server]" | string;
}
export declare class AuthClientConfig {
username: string;
password: string;
endPoint: string;
}
/**
* authClient
* @param 参数1
* @param 参数2
* @return
* @description
* @author jsyang
* @date 2021-11-01 20:13:07
*/
export declare class AuthClient {
private _config;
private _onStatusChanged;
private _data;
private get config();
private set config(value);
private get data();
private set data(value);
get accessToken(): string;
constructor(config: AuthClientConfig, onStatusChanged?: (statusMsg: any) => void);
private login;
reLogin(): Promise<void>;
destroy(): void;
}
export default AuthClient;