@iotile/iotile-cloud
Version:
A typescript library for interfacing with the IOTile Cloud API
27 lines • 796 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var Credentials = /** @class */ (function () {
function Credentials(username, password) {
this.username = username;
this.password = password;
this.token = '';
}
Credentials.prototype.getPayload = function () {
return {
username: this.username,
password: this.password
};
};
Credentials.prototype.setToken = function (token) {
this.token = token;
};
Credentials.prototype.getToken = function () {
return this.token;
};
Credentials.prototype.clearToken = function () {
this.token = '';
};
return Credentials;
}());
exports.Credentials = Credentials;
//# sourceMappingURL=credentials.js.map