@c8y/client
Version:
Client application programming interface to access the Cumulocity IoT-Platform REST services.
26 lines • 796 B
TypeScript
import { IAuthentication, ICredentials } from './IAuthentication.js';
import { IFetchOptions } from './IFetchOptions.js';
/**
* Allows to use Basic-Auth for Authorization to the
* Cumulocity API.
*/
export declare class BasicAuth implements IAuthentication {
user: string;
/**
* Authenticates the given user against the given tenant.
* @param name
* @param password
* @param tenant
*/
constructor(credentials?: ICredentials);
updateCredentials({ tenant, user, password, token, tfa }?: ICredentials): string;
getFetchOptions(options: IFetchOptions): IFetchOptions;
getCometdHandshake(config?: {
ext?: object;
}): {
ext?: object;
};
logout(): void;
private getCookieValue;
}
//# sourceMappingURL=BasicAuth.d.ts.map