(data: unknown)
| 230 | } |
| 231 | |
| 232 | function 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 | |
| 243 | function sanitizeSession(value: unknown): PersistedServerAuthSession | null { |
| 244 | if (!value || typeof value !== "object") { |
no test coverage detected