MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / base64url

Function base64url

scripts/rest-oauth-test.mjs:27–29  ·  view source on GitHub ↗
(buf)

Source from the content-addressed store, hash-verified

25const REDIRECT_URI = `http://localhost:${CALLBACK_PORT}/callback`;
26
27function base64url(buf) {
28 return buf.toString('base64').replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, '');
29}
30
31async function main() {
32 console.log(`\n🔑 REST OAuth Test — ${BASE_URL}/api\n`);

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected