MCPcopy
hub / github.com/coder/mux / hashSessionToken

Function hashSessionToken

src/node/services/serverAuthService.ts:116–118  ·  view source on GitHub ↗
(sessionToken: string)

Source from the content-addressed store, hash-verified

114}
115
116function hashSessionToken(sessionToken: string): string {
117 return crypto.createHash("sha256").update(sessionToken).digest("hex");
118}
119
120function normalizeIpAddress(ipAddress: string | undefined): string | undefined {
121 const normalized = normalizeOptionalString(ipAddress);

Callers 2

validateSessionTokenMethod · 0.85
createSessionLockedMethod · 0.85

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected