MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / isRecord

Function isRecord

apps/api/src/lib/oauth/oauth.utils.ts:75–76  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

73 */
74
75export const isRecord = (value: unknown): value is Record<string, unknown> =>
76 value !== null && typeof value === "object";
77
78export const readString = (obj: unknown, key: string): string => {
79 if (!isRecord(obj)) {

Callers 5

isPrimaryEmailMethod · 0.90
extractProviderUserIdMethod · 0.90
readStringFunction · 0.70
readBooleanFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected