MCPcopy
hub / github.com/tinyhttp/tinyhttp / isSaved

Function isSaved

packages/session/src/index.ts:339–339  ·  view source on GitHub ↗
(sess: Session)

Source from the content-addressed store, hash-verified

337
338 // check if session has been saved
339 const isSaved = (sess: Session) => originalId === sess.id && savedHash === hash(session)
340
341 function shouldsetCookie(sessionID?: string | boolean | undefined, session?: Session) {
342 // cannot set cookie without a session ID

Callers 1

shouldSaveFunction · 0.85

Calls 1

hashFunction · 0.85

Tested by

no test coverage detected