MCPcopy Create free account
hub / github.com/idosal/git-mcp / parseApproveFormBody

Function parseApproveFormBody

src/utils.ts:381–395  ·  view source on GitHub ↗
(body: {
  [x: string]: string | File;
})

Source from the content-addressed store, hash-verified

379};
380
381export const parseApproveFormBody = async (body: {
382 [x: string]: string | File;
383}) => {
384 const action = body.action as string;
385 const email = body.email as string;
386 const password = body.password as string;
387 let oauthReqInfo: AuthRequest | null = null;
388 try {
389 oauthReqInfo = JSON.parse(body.oauthReqInfo as string) as AuthRequest;
390 } catch (e) {
391 oauthReqInfo = null;
392 }
393
394 return { action, oauthReqInfo, email, password };
395};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected