MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / getDerivedEncryptionKey

Function getDerivedEncryptionKey

packages/auth-server/src/server/tokens.ts:35–37  ·  view source on GitHub ↗
(secret: string | Buffer)

Source from the content-addressed store, hash-verified

33}
34
35async function getDerivedEncryptionKey(secret: string | Buffer) {
36 return await hkdf('sha256', secret, '', 'Linen Generated Encryption Key', 32);
37}
38
39export async function signToken(user: any) {
40 return encode(user);

Callers 2

encodeFunction · 0.85
decodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected