Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/decaporg/decap-cms
/ getToken
Method
getToken
packages/decap-cms-backend-gitlab/src/implementation.ts:265–271 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
263
}
264
265
getToken() {
266
if
(this.refreshedTokenPromise) {
267
return
this.refreshedTokenPromise;
268
}
269
270
return
Promise.resolve(this.token);
271
}
272
273
apiRequestFunction =
async
(req: ApiRequest) => {
274
const
token = (
Callers
1
gitlab.spec.js
File · 0.45
Calls
1
resolve
Method · 0.80
Tested by
no test coverage detected