MCPcopy Index your code
hub / github.com/conwnet/github1s / createAuthorizeUrl

Function createAuthorizeUrl

src/gitlab-auth.ts:20–29  ·  view source on GitHub ↗
(state: string)

Source from the content-addressed store, hash-verified

18};
19
20const createAuthorizeUrl = (state: string) => {
21 const parameters = Object.entries({
22 state,
23 scope: 'read_api',
24 response_type: 'code',
25 client_id: CLIENT_ID,
26 redirect_uri: AUTH_REDIRECT_URI,
27 }).map(([key, value]) => `${key}=${encodeURIComponent(value)}`);
28 return `${GITLAB_ORIGIN}/oauth/authorize?${parameters.join('&')}`;
29};
30
31// https://docs.gitlab.com/ee/api/oauth2.html#authorization-code-flow
32export const ConnectToGitLab = async () => {

Callers 1

ConnectToGitLabFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected