MCPcopy
hub / github.com/coder/mux / parseGithubUserResponse

Function parseGithubUserResponse

src/node/services/serverAuthService.ts:232–241  ·  view source on GitHub ↗
(data: unknown)

Source from the content-addressed store, hash-verified

230}
231
232function parseGithubUserResponse(data: unknown): GithubUserResponse {
233 if (!data || typeof data !== "object") {
234 return {};
235 }
236
237 const record = data as Record<string, unknown>;
238 return {
239 login: normalizeOptionalString(record.login),
240 };
241}
242
243function sanitizeSession(value: unknown): PersistedServerAuthSession | null {
244 if (!value || typeof value !== "object") {

Callers 1

fetchGithubLoginMethod · 0.85

Calls 1

normalizeOptionalStringFunction · 0.70

Tested by

no test coverage detected