MCPcopy
hub / github.com/codeaashu/claude-code / getUserInfo

Method getUserInfo

src/server/web/auth/oauth-auth.ts:259–263  ·  view source on GitHub ↗
(userinfoEndpoint: string, accessToken: string)

Source from the content-addressed store, hash-verified

257 }
258
259 private async getUserInfo(userinfoEndpoint: string, accessToken: string): Promise<UserInfoResponse> {
260 return fetchJSON<UserInfoResponse>(userinfoEndpoint, {
261 headers: { Authorization: `Bearer ${accessToken}` },
262 });
263 }
264
265 private extractStateCookie(req: IncomingMessage): string | null {
266 const cookieHeader = req.headers.cookie ?? "";

Callers 1

setupRoutesMethod · 0.95

Calls 1

fetchJSONFunction · 0.85

Tested by

no test coverage detected