@bondsoftware/bondmx-sdk
Version:
18 lines (17 loc) • 936 B
TypeScript
export interface Token {
AccessToken: string;
ExpiresIn: number;
IdToken: string;
RefreshToken: string;
TokenType: string;
[index: string]: any;
}
export declare function createApiHandler({ options }: any): {
get: (url: string, params?: {}, overrideBaseUrl?: string | null, overrideHeaders?: {} | null) => Promise<import("axios").AxiosResponse<any>>;
post: (url: string, formData?: any, overrideBaseUrl?: string | null, overrideHeaders?: {} | null) => Promise<import("axios").AxiosResponse<any>>;
patch: (url: string, formData?: {}, overrideBaseUrl?: string | null, overrideHeaders?: {} | null) => Promise<import("axios").AxiosResponse<any>>;
delete: (url: string, formData?: {}, overrideBaseUrl?: string | null, overrideHeaders?: {} | null) => Promise<import("axios").AxiosResponse<any>>;
isAuthenticated: () => Promise<string | boolean>;
logout: () => Promise<any>;
config: any;
};