MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / genAuthCode

Function genAuthCode

common/src/util/credentials.ts:16–26  ·  view source on GitHub ↗
(
  fingerprintId: string,
  expiresAt: string,
  secret: string,
)

Source from the content-addressed store, hash-verified

14export type User = z.infer<typeof userSchema>
15
16export const genAuthCode = (
17 fingerprintId: string,
18 expiresAt: string,
19 secret: string,
20) =>
21 crypto
22 .createHash('sha256')
23 .update(secret)
24 .update(fingerprintId)
25 .update(expiresAt)
26 .digest('hex')

Callers 9

validateAuthCodeFunction · 0.90
helpers.test.tsFile · 0.90
getLoginStatusFunction · 0.90
POSTFunction · 0.90
validateAuthCodeFunction · 0.90
helpers.test.tsFile · 0.90
getLoginStatusFunction · 0.90
status.test.tsFile · 0.90
POSTFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected