UNPKG

@broadcom/endevor-bridge-for-git-rest-api

Version:

Endevor Bridge for Git Rest client

18 lines (17 loc) 659 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PatLogin = void 0; const AuthAction_1 = require("./AuthAction"); const AbstractRequest_1 = require("../AbstractRequest"); class PatLogin extends AuthAction_1.AuthAction { constructor(payload) { super(); this.customPath = "/login"; this.method = AbstractRequest_1.RequestMethod.GET; this.payload = payload; this.defaultRequestConfig = Object.assign(Object.assign({}, this.defaultRequestConfig), { headers: { Authorization: 'Basic ' + btoa(`:${payload.token}`) } }); } } exports.PatLogin = PatLogin;