MCPcopy Index your code
hub / github.com/CapSoftware/Cap / parseAuthParams

Function parseAuthParams

apps/desktop/src/utils/auth.ts:206–216  ·  view source on GitHub ↗
(url: URL)

Source from the content-addressed store, hash-verified

204}
205
206function parseAuthParams(url: URL) {
207 return paramsValidator.parse(
208 [...url.searchParams].reduce(
209 (acc, [key, value]) => {
210 acc[key] = value;
211 return acc;
212 },
213 {} as Record<string, string>,
214 ),
215 );
216}
217
218async function processAuthData(data: AuthParams) {
219 identifyUser(data.user_id);

Callers 2

startDeepLinkSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected