MCPcopy Create free account
hub / github.com/emwalker/digraph / basicAuthSecret

Function basicAuthSecret

client/src/server/configureApiProxy.ts:14–15  ·  view source on GitHub ↗
(viewerId: string, sessionId: string)

Source from the content-addressed store, hash-verified

12const graphqlApiBaseUrl = process.env.DIGRAPH_API_BASE_URL || 'http://localhost:8080'
13
14export const basicAuthSecret = (viewerId: string, sessionId: string) =>
15 Buffer.from(`${viewerId}:${sessionId}`).toString('base64')
16
17export default (app: Express) => {
18 app.post(

Callers 2

headersMethod · 0.90
onProxyReqFunction · 0.85

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected