MCPcopy
hub / github.com/CapSoftware/Cap / storage.ts

File storage.ts

apps/web/app/api/desktop/[...route]/storage.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { createHmac, timingSafeEqual } from "node:crypto";
2import { db } from "@cap/database";
3import { decrypt, encrypt } from "@cap/database/crypto";
4import { nanoId } from "@cap/database/helpers";

Callers

nothing calls this directly

Calls 15

userIsProFunction · 0.90
requireOrganizationOwnerFunction · 0.90
getGoogleDriveAuthUrlFunction · 0.90
decryptFunction · 0.90
getGoogleDriveUserEmailFunction · 0.90
dbFunction · 0.90
exchangeGoogleDriveCodeFunction · 0.90

Tested by

no test coverage detected