MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getShare

Function getShare

web/lib/share-store.ts:61–72  ·  view source on GitHub ↗
(shareId: string)

Source from the content-addressed store, hash-verified

59}
60
61export function getShare(shareId: string): StoredShare | null {
62 const entry = store.get(shareId);
63 if (!entry) return null;
64
65 // Check expiry
66 if (entry.expiresAt !== undefined && Date.now() > entry.expiresAt) {
67 store.delete(shareId);
68 return null;
69 }
70
71 return entry;
72}
73
74export function verifySharePassword(shareId: string, password: string): boolean {
75 const entry = store.get(shareId);

Callers 1

GETFunction · 0.90

Calls 2

getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected