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

Function isAuthEnvelope

apps/api/tests/api/auth/auth.routes.test.ts:70–76  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

68 "message" in value.data;
69
70const isAuthEnvelope = (value: unknown): value is IAuthEnvelope =>
71 value !== null &&
72 typeof value === "object" &&
73 "data" in value &&
74 value.data !== null &&
75 typeof value.data === "object" &&
76 "user" in value.data;
77
78const isUserProfile = (value: unknown): value is IUserProfile => {
79 if (

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected