MCPcopy Index your code
hub / github.com/codeaashu/claude-code / sign

Method sign

src/server/web/auth/adapter.ts:123–127  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

121 // ── Cookie signing ────────────────────────────────────────────────────────
122
123 sign(id: string): string {
124 const hmac = createHmac("sha256", this.key);
125 hmac.update(id);
126 return `${id}.${hmac.digest("base64url")}`;
127 }
128
129 /**
130 * Verifies the HMAC and returns the raw session ID, or null on failure.

Callers 1

setCookieMethod · 0.95

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected