@egalteam/framework
Version:
Egal
18 lines (17 loc) • 709 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EgalAuthConstructor = void 0;
const AuthAction_1 = require("../Auth/AuthAction");
class EgalAuthConstructor extends AuthAction_1.AuthAction {
constructor(authParams) {
super(authParams.modelName, authParams.connectionType, authParams.microserviceName);
this.egalAuth = new AuthAction_1.AuthAction(authParams.modelName, authParams.connectionType, authParams.microserviceName);
this.url = authParams.url;
this.initAuthAction();
}
initAuthAction() {
this.egalAuth.setBaseURL(this.url);
return this.egalAuth;
}
}
exports.EgalAuthConstructor = EgalAuthConstructor;