MCPcopy Create free account
hub / github.com/decaporg/decap-cms / constructor

Method constructor

packages/decap-cms-backend-git-gateway/src/GitLabAPI.ts:12–17  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

10 tokenPromise: () => Promise<string>;
11
12 constructor(config: Config) {
13 super(config);
14 this.tokenPromise = config.tokenPromise;
15 this.commitAuthor = config.commitAuthor;
16 this.repoURL = '';
17 }
18
19 withAuthorizationHeaders = async (req: ApiRequest) => {
20 const token = await this.tokenPromise();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected