loader.io.api
Version:
loader.io api wrapper for nodejs. If you interested in this npm package, take a look at the npm package [perst](https://dasred.github.io/perst).
38 lines (31 loc) • 745 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
class Authentication {
static TYPE = {
HTTP_BASIC_AUTH: 'basic'
};
/**
*
* @param {string} type
* @param {string} login
* @param {string} password
*/
constructor({type, login, password}) {
this.type = type;
this.login = login;
this.password = password;
}
/**
*
* @return {{password: string, type: string, login: string}}
*/
toJSON() {
return {
type: this.type,
login: this.login,
password: this.password,
};
}
}
module.exports = exports = Authentication;
exports['default'] = Authentication;