MCPcopy
hub / github.com/claabs/epicgames-freegames-node / getUniqueUrl

Function getUniqueUrl

src/device-login.ts:93–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91};
92
93const getUniqueUrl = (): { reqId: string; url: string } => {
94 const baseUrl = config.webPortalConfig?.baseUrl || 'http://localhost:3000';
95 const randInt = Math.floor(Math.random() * hashAlphabet.length ** hashLength);
96 const reqId = hashids.encode(randInt);
97 const url = urlJoin(baseUrl, `/${reqId}`);
98 return { reqId, url };
99};
100
101const pendingRedirects = new Map<string, RequestHandler>();
102

Callers 2

testServerNotifyMethod · 0.85
newDeviceAuthLoginMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected