MCPcopy Create free account
hub / github.com/Criptext/Criptext-Email-React-Client / linkBegin

Function linkBegin

electron_app/src/clientManager.js:425–438  ·  view source on GitHub ↗
({ username, domain })

Source from the content-addressed store, hash-verified

423};
424
425const linkBegin = async ({ username, domain }) => {
426 const data = {
427 targetUsername: username,
428 domain,
429 version: LINK_DEVICES_FILE_VERSION
430 };
431
432 const recipientId = getRecipientId({ recipientId: username, domain });
433 const client = await createClient({
434 recipientId,
435 optionalToken: '@'
436 });
437 return await client.linkBegin(data);
438};
439
440const linkDeny = async params => {
441 const { randomId, recipientId } = params;

Callers

nothing calls this directly

Calls 2

getRecipientIdFunction · 0.85
createClientFunction · 0.70

Tested by

no test coverage detected