MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev /

Class

apps/web/services/api-keys.ts:4–4  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import { createHash, randomBytes } from 'crypto';
3
4export class ApiKeysService {
5 private static decryptKey({ token }: { token: string }) {
6 const hash = createHash('sha256')
7 .update(`${token}${process.env.NEXTAUTH_SECRET}`)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected