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)

30 lines 1.2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isServiceCredentials = exports.isAppCredentials = exports.isAgentAuth = void 0; function isAgentAuth(obj) { return (obj && obj.content && obj.content.baseUrl && obj.content.iat && obj.content.clientCredentialProfile && obj.content.clientId && obj.content.tenant && obj.expiration && obj.response && obj.response.client_id && obj.response.token_endpoint_auth_method && obj.response.grant_types && obj.response.client_secret_expires_at && obj.response.registration_access_token && obj.response.registration_client_uri); } exports.isAgentAuth = isAgentAuth; function isAppCredentials(obj) { return obj && obj.gateway && obj.basicAuth && obj.tenant && obj.appName && obj.appVersion && obj.usertenant; } exports.isAppCredentials = isAppCredentials; function isServiceCredentials(obj) { return obj && obj.gateway && obj.basicAuth && obj.tenant && !obj.appName && !obj.appVersion && !obj.usertenant; } exports.isServiceCredentials = isServiceCredentials; //# sourceMappingURL=credentials.js.map