MCPcopy
hub / github.com/coder/mux / randomBase64Url

Function randomBase64Url

src/node/services/codexOauthService.ts:59–61  ·  view source on GitHub ↗
(bytes = 32)

Source from the content-addressed store, hash-verified

57}
58
59function randomBase64Url(bytes = 32): string {
60 return crypto.randomBytes(bytes).toString("base64url");
61}
62
63function isPlainObject(value: unknown): value is Record<string, unknown> {
64 return Boolean(value) && typeof value === "object" && !Array.isArray(value);

Callers 2

startDesktopFlowMethod · 0.85
startDeviceFlowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected