MCPcopy Create free account
hub / github.com/Treeki/BirdBridge / makeClientSecret

Function makeClientSecret

apis/authflow.ts:74–78  ·  view source on GitHub ↗
(clientId: string)

Source from the content-addressed store, hash-verified

72}
73
74async function makeClientSecret(clientId: string): Promise<string> {
75 const data = new TextEncoder().encode(CONFIG.bridge_secret + clientId).buffer;
76 const hash = await crypto.subtle.digest('SHA-1', data);
77 return toHashString(hash);
78}
79
80// All these endpoints can be accessed without authentication
81export function setup(app: express.Express) {

Callers 1

setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected