MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / decryptJWE

Function decryptJWE

packages/web/tools/decryptJWE.ts:20–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20async function decryptJWE() {
21 const decoded = await decode({
22 token,
23 secret: secret!,
24 salt,
25 });
26 console.log(JSON.stringify(decoded, null, 2));
27}
28
29decryptJWE().catch(err => {
30 console.error('Failed to decrypt JWE:', err.message);

Callers 1

decryptJWE.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected