MCPcopy Index your code
hub / github.com/callstack/agent-device / appendUserCode

Function appendUserCode

src/cli/auth-session.ts:537–541  ·  view source on GitHub ↗
(verificationUri: string, userCode: string)

Source from the content-addressed store, hash-verified

535}
536
537function appendUserCode(verificationUri: string, userCode: string): string {
538 const url = new URL(verificationUri);
539 url.searchParams.set('user_code', userCode);
540 return url.toString();
541}
542
543async function openBrowser(url: string, io?: AuthIo): Promise<void> {
544 if (io?.openBrowser) {

Callers 1

loginWithDeviceAuthFunction · 0.85

Calls 1

setMethod · 0.80

Tested by

no test coverage detected