UNPKG

@mindconnect/mindconnect-nodejs

Version:

NodeJS Library for Siemens Insights Hub Connectivity - TypeScript SDK for Insights Hub and Industrial IoT - Command Line Interface - Insights Hub Development Proxy (Siemens Insights Hub was formerly known as MindSphere)

27 lines (26 loc) 823 B
import { AuthBase } from "./auth-base"; import { TokenRotation } from "./mindconnect-base"; export declare class CredentialAuth extends AuthBase implements TokenRotation { protected _gateway: string; protected _basicAuth: string; protected _tenant: string; protected AcquireToken(): Promise<boolean>; /** * Returns the current token. * This token can be used in e.g. in Postman to call MindSphere APIs. * * @returns {(Promise<string>)} * * @memberOf AgentAuth */ GetToken(): Promise<string>; /** * Creates an instance of CredentialAuth. * @param {string} _gateway * @param {string} _basicAuth * @param {string} _tenant * * @memberOf CredentialAuth */ constructor(_gateway: string, _basicAuth: string, _tenant: string); }