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

Function getAuthenticatedUser

cypress/plugins/gitlab.js:87–91  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

85}
86
87async function getAuthenticatedUser(token) {
88 const client = getGitLabClient(token);
89 const user = await client.Users.current();
90 return { ...user, token, backendName: 'gitlab' };
91}
92
93async function getUser() {
94 const { token } = getEnvs();

Callers 1

getUserFunction · 0.70

Calls 1

getGitLabClientFunction · 0.85

Tested by

no test coverage detected