MCPcopy Index your code
hub / github.com/CapSoftware/Cap / isAuth

Function isAuth

apps/chrome-extension/src/shared/storage.ts:822–829  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

820};
821
822const isAuth = (value: unknown): value is ExtensionAuth => {
823 if (!value || typeof value !== "object") return false;
824 const candidate = value as Partial<ExtensionAuth>;
825 return (
826 typeof candidate.authApiKey === "string" &&
827 typeof candidate.userId === "string"
828 );
829};
830
831const isPendingAuth = (value: unknown): value is PendingAuth => {
832 if (!value || typeof value !== "object") return false;

Callers 1

loadAuthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected